[CMAKE]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 4 May 2014 09:49:21 +0000 (09:49 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 4 May 2014 09:49:21 +0000 (09:49 +0000)
Enable -Wold-style-declaration for C builds

svn path=/trunk/; revision=63155

reactos/cmake/gcc.cmake

index c6da9b8..9765882 100644 (file)
@@ -36,6 +36,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
     add_compile_flags("-Wno-microsoft")
 endif()
 
+add_compile_flags_language("-Wold-style-declaration" "C")
 add_compile_flags_language("-fno-rtti -fno-exceptions" "CXX")
 
 #bug