cast: disable warnings for function casts in ffs
Vulkan presents a few function pointers as (void*)(*)(void*) or something like that, and we have to cast these to the extension signatures. This fixes some errors under clang-17
This commit is contained in:
parent
19095934b2
commit
0ce69083e6
1
cast.hpp
1
cast.hpp
@ -208,6 +208,7 @@ namespace cruft::cast {
|
||||
#pragma GCC diagnostic ignored "-Wcast-align"
|
||||
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
||||
#pragma GCC diagnostic ignored "-Wcast-qual"
|
||||
#pragma GCC diagnostic ignored "-Wcast-function-type-strict"
|
||||
#if defined(COMPILER_GCC)
|
||||
#pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user