From 7a57606af3ad9fa814719136f3d65eab071496a9 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sat, 17 Feb 2018 23:27:10 +0100 Subject: [PATCH] Mute shadow warnings in pcbnew{,PYTHON}_wrap.cxx --- pcbnew/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index 0e86e2b5cc..2f5bd44bef 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -370,6 +370,12 @@ if( COMPILER_SUPPORTS_WSHADOW ) ${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS} ${PCBNEW_SCRIPTING_DIALOGS} ${PCBNEW_SCRIPTING_PYTHON_HELPERS} PROPERTIES COMPILE_FLAGS ${WSHADOW_FLAGS} ) + + # There is a lot of 'local variable shadowed' warnings, + # but we have no control over the generated code + set_source_files_properties( pcbnew_wrap.cxx pcbnewPYTHON_wrap.cxx + PROPERTIES COMPILE_FLAGS -Wno-shadow + ) endif()