Avoid fatal warning about potential null pointer deref from GCC 12

It is about code included from Boost.Asio (some io_uring related code) so
let's just not treat it as fatal error.
This commit is contained in:
Martchus 2022-05-12 20:45:25 +02:00
parent 4c98887b02
commit 438fccd6cd
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ use_openssl(VISIBILITY PUBLIC)
# link against pthread
list(APPEND PUBLIC_LIBRARIES pthread)
# avoid fatal warning about potential null pointer deref from GCC 12 about code included from Boost.Asio
list(APPEND META_PUBLIC_COMPILE_OPTIONS "-Wno-error=null-dereference")
# apply basic configuration
include(BasicConfig)