From: Vsevolod Stakhov Date: Tue, 17 Dec 2024 14:28:32 +0000 (+0000) Subject: [Minor] Make some important compile warnings as compile errors X-Git-Tag: 3.11.1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e00775158876a0b66cf87d7f4f14337627277c6f;p=thirdparty%2Frspamd.git [Minor] Make some important compile warnings as compile errors --- diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 2315d5e4d9..71efe54352 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()