From 438fccd6cd891c8355492101d71d51b5eae39378 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 12 May 2022 20:45:25 +0200 Subject: [PATCH] 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. --- librepomgr/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/librepomgr/CMakeLists.txt b/librepomgr/CMakeLists.txt index 6e968d9..52f084d 100644 --- a/librepomgr/CMakeLists.txt +++ b/librepomgr/CMakeLists.txt @@ -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)