diff options
-rw-r--r-- | cmake/CompilerWarnings.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 2315d5e4d..71efe5435 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -84,6 +84,12 @@ IF(SUPPORT_WSUGGEST_ATTRIBUTE) ADD_COMPILE_OPTIONS("-Wno-suggest-attribute=format") ENDIF() +# Make some warnings more severe +ADD_COMPILE_OPTIONS("-Werror=implicit-function-declaration") +ADD_COMPILE_OPTIONS("-Werror=implicit-int") +ADD_COMPILE_OPTIONS("-Werror=return-type") +ADD_COMPILE_OPTIONS("-Werror=strict-prototypes") + #IF(SUPPORT_WDEPRECATED_DECLARATIONS) # ADD_COMPILE_OPTIONS("-Wno-deprecated-declarations") #ENDIF() |