Skip to content

Commit

Permalink
Do not make compiler warnings into errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Heikkila committed Dec 12, 2017
1 parent 518fd98 commit 400f40e
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 @@ -49,7 +49,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# GCC 4.9.1 gives unnecessary warnings about missing field initializers when compiling
# with -std=c++11 and -Wextra, so use -Wno-missing-field-initializers for now.
set(warnings "-Wall -Wextra -Werror -Wno-missing-field-initializers")
set(warnings "-Wall -Wextra -Wno-missing-field-initializers")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set(warnings "/W4 /EHsc")
endif()
Expand Down

0 comments on commit 400f40e

Please sign in to comment.