[CMAKE]
authorPierre Schweitzer <pierre@reactos.org>
Mon, 5 May 2014 21:03:20 +0000 (21:03 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 5 May 2014 21:03:20 +0000 (21:03 +0000)
Don't activate specific warnings for release builds

svn path=/trunk/; revision=63170

reactos/cmake/gcc.cmake

index 322b689..1a6cd66 100644 (file)
@@ -36,7 +36,9 @@ if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
     add_compile_flags("-Wno-microsoft")
 endif()
 
-add_compile_flags_language("-Wold-style-declaration -Wdeclaration-after-statement" "C")
+if(DBG)
+    add_compile_flags_language("-Wold-style-declaration -Wdeclaration-after-statement -Wshadow" "C")
+endif()
 add_compile_flags_language("-fno-rtti -fno-exceptions" "CXX")
 
 #bug