From 2b949165515ce8e75db4cccdde0e7d155dbb5384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Morschh=C3=A4user?= Date: Tue, 3 Jun 2014 12:07:47 +0200 Subject: [PATCH] Add g++ -pedantic -Wmissing-declarations -Winline flags. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a33e0a47b..99b1a9b5af 100644 --- a/CMakeLists.txt +++ b/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")