Mute shadow warnings in pcbnew{,PYTHON}_wrap.cxx

This commit is contained in:
Maciej Suminski 2018-02-17 23:27:10 +01:00
parent c3197a5906
commit 7a57606af3
1 changed files with 6 additions and 0 deletions

View File

@ -370,6 +370,12 @@ if( COMPILER_SUPPORTS_WSHADOW )
${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS} ${PCBNEW_SCRIPTING_DIALOGS} ${PCBNEW_SCRIPTING_PYTHON_HELPERS} ${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS} ${PCBNEW_SCRIPTING_DIALOGS} ${PCBNEW_SCRIPTING_PYTHON_HELPERS}
PROPERTIES COMPILE_FLAGS ${WSHADOW_FLAGS} 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() endif()