Skip to content

Commit adeb944

Browse files
committed
Use Werror to error out in case of failures
1 parent af61380 commit adeb944

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if(NOT DISABLE_RPATH)
133133
endif()
134134

135135
# set general build flags for debug build-type
136-
set(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb3 -DDEBUG -fno-common -Wall -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wextra -Wredundant-decls" CACHE STRING "" FORCE)
136+
set(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb3 -DDEBUG -fno-common -Wall -Werror -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wextra -Wredundant-decls" CACHE STRING "" FORCE)
137137
## append ASAN build flags if compiler version has support
138138
#if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
139139
# if(CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.8)

0 commit comments

Comments
 (0)