Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add g++ -pedantic -Wmissing-declarations -Winline flags.
  • Loading branch information
Mark Morschhäuser committed Jun 3, 2014
1 parent b0618fb commit 2b94916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -133,7 +133,7 @@ endif()


IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
if ((NOT DISABLE_WERROR) AND GIT_VERSION) if ((NOT DISABLE_WERROR) AND GIT_VERSION)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=cast-align") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Werror -Wno-error=cast-align -Wmissing-declarations -Winline")
endif () endif ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -W -Wpointer-arith -Wcast-align") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -W -Wpointer-arith -Wcast-align")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wno-format-y2k -Wno-long-long -fno-strict-aliasing") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wno-format-y2k -Wno-long-long -fno-strict-aliasing")
Expand Down

0 comments on commit 2b94916

Please sign in to comment.