From d202b78dc4ad0faf6db5f4a807082a6a7b6a000f Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 24 Oct 2021 07:28:48 -0700 Subject: [PATCH] Fix disable warnings to be compatible GCC and Clang both support the short mnemonic `-w` to disable warnings, so use that to be compatible Fixes https://gitlab.com/kicad/code/kicad/issues/9446 --- pcbnew/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index b524f0f258..0ae24f0bd5 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -389,9 +389,9 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) if( MSYS ) # For some reason the .cxx file generated by SWIG cannot be linked if compiled with debug options: # it creates a *lot* of not found symbols. So compile it with release mode - set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-O2 -Wno-everything" ) + set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-O2 -w" ) else() - set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-Wno-everything" ) + set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-w" ) endif() endif()