From 5768a7f748bf71eaa231201f3ef1d0a73e8e9370 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Thu, 10 Oct 2019 15:59:39 -0400 Subject: [PATCH] [cmake] Only use Wshadow=local for gcc --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2dfb470..22796f04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,9 +78,10 @@ target_compile_options(project_warnings INTERFACE -Wall -Wextra - -Wshadow -Wpedantic -Wno-sign-compare + $<$:-Wshadow=local> + $<$:-Wshadow> $<$:-Wno-gcc-compat> )