]> granicus.if.org Git - check/commitdiff
Fix required C standard from C90 to C99
authorMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sun, 20 Oct 2019 09:26:04 +0000 (11:26 +0200)
committerMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mon, 21 Oct 2019 07:01:47 +0000 (09:01 +0200)
We are using C99 features, such as anonymous variadic macros and
mixed declarations and code.

Besides, we are using POSIX extensions (fork, etc.), so there is
(probably?) no point in forcing the use of the old ANSI C89 / ISO C90.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
CMakeLists.txt

index b4176af148e6b71deb67aa53f2a38771d3082668..7a017f8205da3e79846d54a92cb6b798545b4496 100644 (file)
@@ -61,8 +61,8 @@ set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT
 include(GNUInstallDirs)
 
 ###############################################################################
-# Adhere strictly to old ANSI C89 / ISO C90 standard
-set(CMAKE_C_STANDARD 90)
+# Follow ISO C99 standard
+set(CMAKE_C_STANDARD 99)
 set(CMAKE_C_STANDARD_REQUIRED ON)
 set(CMAKE_C_EXTENSIONS ON)          # Use GNU extensions and POSIX standard