From 5835d77c9d2085f11e3b8df7eec1829faf1f776c Mon Sep 17 00:00:00 2001 From: Luke Street Date: Fri, 29 May 2020 17:40:15 -0400 Subject: [PATCH] Enable -Wno-unknown-warning-option, -Wno-unused-private-field only for clang --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75b8fe15e..fa9b7f29d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,8 +169,10 @@ else() endif() add_compile_options($<$:-fno-rtti> $<$:-fno-exceptions> - -Wall -Wno-multichar -Werror=implicit-fallthrough -Wno-unknown-warning-option - -Wno-lto-type-mismatch -Wno-unused-variable -Wno-unused-private-field + $<$:-Wno-unknown-warning-option> + $<$:-Wno-unused-private-field> + -Wall -Wno-multichar -Werror=implicit-fallthrough + -Wno-lto-type-mismatch -Wno-unused-variable -Wno-unused-function -Wno-sign-compare -Wno-unknown-pragmas -Werror) add_compile_definitions(FMT_EXCEPTIONS=0)