Do not treat warning "'this' pointer is null" appearing with GCC 12 as error

It is about code included from libclang and likely wrong so let's just not
abort the compilation due to it.
This commit is contained in:
Martchus 2022-05-12 20:23:33 +02:00
parent 762540f5e5
commit a6b9d771aa
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ endif ()
# also add reflective_rapidjson which is header-only but might pull additional include dirs for RapidJSON
list(APPEND PRIVATE_LIBRARIES "${REFLECTIVE_RAPIDJSON_TARGET_NAME}")
# avoid warning "'this' pointer is null" from GCC 12 about code included from libclang
list(APPEND META_PRIVATE_COMPILE_OPTIONS "-Wno-error=nonnull")
# include modules to apply configuration
include(BasicConfig)
include(WindowsResources)