]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add wextra
authorBastian Dehn <hhaalo@arcor.de>
Thu, 9 Oct 2025 18:07:06 +0000 (20:07 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 9 Oct 2025 18:07:06 +0000 (20:07 +0200)
CMakeLists.txt

index 59bbdaaf057316dfe40915a5568d2f75ee437d2f..54f5f938db2d7ea55540be76a023a0329c4ed982 100644 (file)
@@ -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 \