From: Mikko Johannes Koivunalho Date: Sun, 20 Oct 2019 09:26:04 +0000 (+0200) Subject: Fix required C standard from C90 to C99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=903f64b394b002aca56f4946d2212002d2d64362;p=check Fix required C standard from C90 to C99 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b4176af..7a017f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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