]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
add gnu99 std
authorBastian Dehn <hhaalo@arcor.de>
Sun, 9 Feb 2025 07:57:39 +0000 (08:57 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 9 Feb 2025 07:57:39 +0000 (08:57 +0100)
CMakeLists.txt

index 203925c2a19020710906346945a9585d6019e480..b22c3e5a2cf74f77b8891adbac0b014060ab929a 100644 (file)
@@ -3,7 +3,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1)
 SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "build type")
 
 IF(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
-       SET(CMAKE_C_FLAGS "-Wall -g -fsanitize=address")
+       SET(CMAKE_C_FLAGS "-std=gnu99 -Wall -g -fsanitize=address")
+else()
+       SET(CMAKE_C_FLAGS "-std=gnu99 -Werror")
 ENDIF()
 
 MESSAGE(STATUS "CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}")