From eadc5445660e225d9330a24df9b53913e489411b Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Thu, 9 Oct 2025 20:07:06 +0200 Subject: [PATCH] add wextra --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59bbdaa..54f5f93 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 -pedantic" CACHE STRING "compiler flags" FORCE) + SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Wextra -Werror -pedantic" CACHE STRING "compiler flags" FORCE) ENDIF() IF(CMAKE_BUILD_TYPE STREQUAL "Debug") - SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -pedantic -g" CACHE STRING "debug compiler flags" FORCE) + SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Wextra -pedantic -g" CACHE STRING "debug compiler flags" FORCE) ENDIF() IF (RUN_TESTS) @@ -20,6 +20,7 @@ IF (RUN_TESTS) -fprofile-arcs \ -ftest-coverage \ -Wall \ +-Wextra \ -pedantic \ -g \ -fsanitize=address \ -- 2.47.3