diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-17 14:28:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-17 14:28:32 +0000 |
commit | e00775158876a0b66cf87d7f4f14337627277c6f (patch) | |
tree | 464316ebd039197fa20b70daca2fa3b2d61d5ce8 | |
parent | ccb45df90df60fae36b9438cfb2b0088e590306b (diff) | |
download | rspamd-e00775158876a0b66cf87d7f4f14337627277c6f.tar.gz rspamd-e00775158876a0b66cf87d7f4f14337627277c6f.zip |
[Minor] Make some important compile warnings as compile errors
-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() |