Skip to content
Browse files

Add g++ -pedantic -Wmissing-declarations -Winline flags.

  • Loading branch information...
1 parent b0618fb commit 2b949165515ce8e75db4cccdde0e7d155dbb5384 Mark Morschhäuser committed Jun 3, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 CMakeLists.txt
View
2 CMakeLists.txt
@@ -133,7 +133,7 @@ endif()
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
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 ()
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")

0 comments on commit 2b94916

Please sign in to comment.
Something went wrong with that request. Please try again.