quiet -Wmissing-prototypes warnings, and enable this warning by default for C with gcc.

helps for finding unused functions and making functions static, also did some minor code cleanup.
This commit is contained in:
Campbell Barton
2012-09-15 01:52:28 +00:00
parent 37748b1e08
commit e75f5c8208
87 changed files with 251 additions and 217 deletions

View File

@@ -470,6 +470,7 @@ macro(remove_strict_flags)
if(CMAKE_COMPILER_IS_GNUCC)
remove_cc_flag("-Wstrict-prototypes")
remove_cc_flag("-Wmissing-prototypes")
remove_cc_flag("-Wunused-parameter")
remove_cc_flag("-Wwrite-strings")
remove_cc_flag("-Wundef")