Skip to content
Permalink
Browse files

Enable -Werror

  • Loading branch information
m-kuhn committed Sep 6, 2018
1 parent 75c9b06 commit a3416aa14fcd27e54654bb39cf7157ea2d6b4023
Showing with 1 addition and 1 deletion.
  1. +1 −1 CMakeLists.txt
@@ -470,7 +470,7 @@ IF (PEDANTIC)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_warnings}")
ELSE (MSVC)
# add warnings via flags (not as definitions as on Mac -Wall can not be overridden per language )
SET(_warnings "-Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing")
SET(_warnings "-Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Werror")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_warnings}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_warnings}")

0 comments on commit a3416aa

Please sign in to comment.
You can’t perform that action at this time.