Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress clang warning -Wcast-function-type for shared destroy #2078

Merged
merged 4 commits into from
Feb 19, 2025

Conversation

M2-TE
Copy link
Contributor

@M2-TE M2-TE commented Feb 18, 2025

Clang 19.1.7 throws warnings due to the reinterpret cast to m_destroy.

Suppression implemented akin to the GCC one.
Used defined( __clang__ ) && !defined( __INTEL_COMPILER ) without !defined( __GNUC__ ), as clang defines it to signify compatible GCC versions.

Also checking clang major version via (__clang_major__ >= 13), as 13 is where the -Wcast-function-type was first introduced.

@M2-TE M2-TE changed the title Suppress clang warning -Wcast-function-type-mismatch for shared destroy Suppress clang warning -Wcast-function-type for shared destroy Feb 18, 2025
@asuessenbach asuessenbach merged commit 03f0733 into KhronosGroup:main Feb 19, 2025
58 checks passed
@M2-TE M2-TE deleted the fix-shared-destroy branch February 19, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants