aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-20 19:14:29 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-20 19:14:29 +0300
commit5fb57a17d533f87d2f14cd797b05680dca93b82b (patch)
treee98f2eccfd52ff7344b729c13aa326feabbf8833 /CMakeLists.txt
parent91f4d431e095afd93185069ad93d31035d4bd5eb (diff)
downloadrspamd-5fb57a17d533f87d2f14cd797b05680dca93b82b.tar.gz
rspamd-5fb57a17d533f87d2f14cd797b05680dca93b82b.zip
Restore std=c99 compiler flag.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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)