]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not bother about sign-compare
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 Jul 2016 16:03:05 +0000 (17:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 Jul 2016 16:07:23 +0000 (17:07 +0100)
CMakeLists.txt

index 61b78e3a54391601081167dde75e13395f076528..72ca333a5ab9d22623f0a3a5b4323300e4458af8 100644 (file)
@@ -727,6 +727,7 @@ CHECK_C_COMPILER_FLAG(-Wno-unused-parameter SUPPORT_WPARAM)
 CHECK_C_COMPILER_FLAG(-Wno-unused-function SUPPORT_WFUNCTION)
 CHECK_C_COMPILER_FLAG(-Wunused-variable SUPPORT_WUNUSED_VAR)
 CHECK_C_COMPILER_FLAG(-Wno-pointer-sign SUPPORT_WPOINTER_SIGN)
+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)
@@ -777,6 +778,9 @@ ENDIF()
 IF(SUPPORT_WNO_UNUSED_CONST)
        SET(CMAKE_C_WARN_FLAGS "${CMAKE_C_WARN_FLAGS} -Wno-unused-const-variable")
 ENDIF()
+IF(SUPPORT_WSIGN_COMPARE)
+       SET(CMAKE_C_WARN_FLAGS "${CMAKE_C_WARN_FLAGS} -Wno-sign-compare")
+ENDIF()
 IF(SUPPORT_STD11_FLAG)
        SET(CMAKE_C_WARN_FLAGS "${CMAKE_C_WARN_FLAGS} -std=c11")
 ELSE(SUPPORT_STD11_FLAG)