From: Vsevolod Stakhov Date: Tue, 20 Dec 2011 16:14:29 +0000 (+0300) Subject: Restore std=c99 compiler flag. X-Git-Tag: 0.4.7~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5fb57a17d533f87d2f14cd797b05680dca93b82b;p=rspamd.git Restore std=c99 compiler flag. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ee4133e92..5eae18c46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -565,6 +565,7 @@ 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(-pedantic SUPPORT_PEDANTIC_FLAG) +CHECK_C_COMPILER_FLAG("-std=c99" SUPPORT_STD_FLAG) IF(SUPPORT_W) SET(CMAKE_C_WARN_FLAGS "${CMAKE_C_WARN_FLAGS} -W") ENDIF(SUPPORT_W) @@ -589,6 +590,9 @@ ENDIF(SUPPORT_WPOINTER_SIGN) IF(SUPPORT_PEDANTIC_FLAG) SET(CMAKE_C_WARN_FLAGS "${CMAKE_C_WARN_FLAGS} -pedantic") ENDIF(SUPPORT_PEDANTIC_FLAG) +IF(SUPPORT_STD_FLAG) + SET(CMAKE_C_WARN_FLAGS "${CMAKE_C_WARN_FLAGS} -std=c99") +ENDIF(SUPPORT_STD_FLAG) # Optimization flags IF(NOT CMAKE_C_OPT_FLAGS)