mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user