Skip to content

Commit

Permalink
removed Werror flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kellekai committed Jul 8, 2019
1 parent 676f887 commit 6190c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ endif()
if("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel")
set(ADD_CFLAGS "${ADD_CFLAGS} -Wall")
elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
set(ADD_CFLAGS "${ADD_CFLAGS} -Wall -Werror")
set(ADD_CFLAGS "${ADD_CFLAGS} -Wall")
try_compile(C_COMPILER_HAS_FLAG ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/test/cmake/minimal.c COMPILE_DEFINITIONS "-Wno-format-truncation")
if(C_COMPILER_HAS_FLAG)
set(ADD_CFLAGS "${ADD_CFLAGS} -Wno-format-truncation")
Expand Down

0 comments on commit 6190c5b

Please sign in to comment.