From a009a04b2ddfad866fc156ec7691c8e83e539657 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 11 Dec 2021 09:41:12 -0800 Subject: [PATCH] Build: Avoid compiler flag warning. These are clang warnings. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16bfa05cb0..1826df4e3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -308,6 +308,8 @@ if(NOT MSVC) if(CLANG) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch -Wno-uninitialized") add_definitions(-Wno-nullability-completeness) + add_definitions(-Wno-tautological-pointer-compare) + add_definitions(-Wno-deprecated-register) endif() if(USE_ASAN) @@ -341,8 +343,6 @@ if(NOT MSVC) # Disable some warnings add_definitions(-Wno-multichar) - add_definitions(-Wno-deprecated-register) - add_definitions(-Wno-tautological-pointer-compare) # Don't compile with strict aliasing, we're not 100% aliasing-safe add_compile_options(-fno-strict-aliasing)