From: Bastian Dehn Date: Fri, 14 Feb 2025 07:24:25 +0000 (+0100) Subject: change to std c99 X-Git-Tag: v1.0.35^2~1^2~9 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=470bcd380adb643eacad5717ea8bd544a59a1572;p=sane-kds-s2000w-net.git change to std c99 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f28274..6dd792b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,16 +7,16 @@ PROJECT("kds-s2000w-net") SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release") IF(CMAKE_BUILD_TYPE STREQUAL "Release") - SET(CMAKE_C_FLAGS "-std=gnu99 -fPIC -Wall -Werror" CACHE STRING "compiler flags" FORCE) + SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Werror" CACHE STRING "compiler flags" FORCE) ENDIF() IF(CMAKE_BUILD_TYPE STREQUAL "Debug") - SET(CMAKE_C_FLAGS "-std=gnu99 -fPIC -Wall -g" CACHE STRING "debug compiler flags" FORCE) + SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -g" CACHE STRING "debug compiler flags" FORCE) ENDIF() IF (RUN_TESTS) SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "debug" FORCE) - SET(CMAKE_C_FLAGS "-std=gnu99 -fPIC \ + SET(CMAKE_C_FLAGS "-std=c99 -fPIC \ -fprofile-arcs \ -ftest-coverage \ -Wall \