cmLoadCommandCommand: Suppress -Wcast-function-type-strict warning

We need this style cast to load plugins, and it works on architectures
we support.
This commit is contained in:
Brad King
2024-11-19 11:56:37 -05:00
parent ce49c5debb
commit 78e95e4ce1

View File

@@ -38,6 +38,12 @@
# include <malloc.h> /* for malloc/free on QNX */
#endif
#if defined(__clang__) && defined(__has_warning)
# if __has_warning("-Wcast-function-type-strict")
# pragma clang diagnostic ignored "-Wcast-function-type-strict"
# endif
#endif
namespace {
const char* LastName = nullptr;