diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-04-06 16:27:39 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-04-11 14:06:55 +0200 |
commit | d6da3282ea865b8c39fab3e7026296fa922e1a64 (patch) | |
tree | 9ef13a604ad5896fcdc089e54c141e73beade00e /cmake | |
parent | 0eee0523918a72f45bf3ffe3cd42c3182ed6f95e (diff) | |
download | rspamd-d6da3282ea865b8c39fab3e7026296fa922e1a64.tar.gz rspamd-d6da3282ea865b8c39fab3e7026296fa922e1a64.zip |
[Minor] Enable missing_noreturn compiler warning
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/CompilerWarnings.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 4dd011d98..2dcad92ef 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -10,6 +10,7 @@ CHECK_C_COMPILER_FLAG(-Wno-sign-compare SUPPORT_WSIGN_COMPARE) CHECK_C_COMPILER_FLAG(-Wstrict-prototypes SUPPORT_WSTRICT_PROTOTYPES) CHECK_C_COMPILER_FLAG(-pedantic SUPPORT_PEDANTIC_FLAG) CHECK_C_COMPILER_FLAG(-Wno-unused-const-variable SUPPORT_WNO_UNUSED_CONST) +CHECK_C_COMPILER_FLAG(-Wmissing-noreturn SUPPORT_WMISSING_NORETURN) # GCC 6 specific CHECK_C_COMPILER_FLAG(-Wnull-dereference SUPPORT_WNULL_DEREFERENCE) CHECK_C_COMPILER_FLAG(-Wduplicated-cond SUPPORT_WDUPLICATED_COND) @@ -67,6 +68,9 @@ ENDIF() IF(SUPPORT_WIMPLICIT_FALLTHROUGH) ADD_COMPILE_OPTIONS("-Wno-implicit-fallthrough") ENDIF(SUPPORT_WIMPLICIT_FALLTHROUGH) +IF(SUPPORT_WMISSING_NORETURN) + ADD_COMPILE_OPTIONS("-Wmissing-noreturn") +ENDIF(SUPPORT_WMISSING_NORETURN) CHECK_C_COMPILER_FLAG(-fPIC SUPPORT_FPIC) IF(SUPPORT_FPIC) |