Enable -Wold-style-declaration for C builds

svn path=/trunk/; revision=63155
This commit is contained in:
Pierre Schweitzer
2014-05-04 09:49:21 +00:00
parent bd2145a2e8
commit a9cd01c98b
+1
View 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