From: Bastian Dehn Date: Thu, 9 Oct 2025 17:52:29 +0000 (+0200) Subject: add pendantic gcc param X-Git-Tag: v1.1.10^2~19^2~7 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=fb01cf736b0e544b855a9f34ecaafd715dadce8b;p=sane-kds-s2000w-net.git add pendantic gcc param --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dd792b..59bbdaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,11 +7,11 @@ PROJECT("kds-s2000w-net") SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release") IF(CMAKE_BUILD_TYPE STREQUAL "Release") - SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Werror" CACHE STRING "compiler flags" FORCE) + SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Werror -pedantic" CACHE STRING "compiler flags" FORCE) ENDIF() IF(CMAKE_BUILD_TYPE STREQUAL "Debug") - SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -g" CACHE STRING "debug compiler flags" FORCE) + SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -pedantic -g" CACHE STRING "debug compiler flags" FORCE) ENDIF() IF (RUN_TESTS) @@ -20,6 +20,7 @@ IF (RUN_TESTS) -fprofile-arcs \ -ftest-coverage \ -Wall \ +-pedantic \ -g \ -fsanitize=address \ -Wl,--wrap,kds_s2000w_client_init,\