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:
Danny Robson 2023-11-19 09:27:12 +10:00
parent 19095934b2
commit 0ce69083e6
1 changed files with 1 additions and 0 deletions

View File

@ -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