[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: [calligra] /: Enable -Werror
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2013-11-27 16:47:15
Message-ID: E1VliGh-0008GL-EH () scm ! kde ! org
[Download RAW message or body]
Git commit 910b2a0c00347210bc9a0f859657b8a138c3867e by Boudewijn Rempt.
Committed on 27/11/2013 at 15:56.
Pushed by rempt into branch 'master'.
Enable -Werror
All warnings except for deprecations and #warning now result in
an error, except in Kexi and certain 3rd party code we include.
CCMAIL:kimageshop@kde.org
CCMAIL:calligrad-devel@kde.org
M +9 -0 CMakeLists.txt
http://commits.kde.org/calligra/910b2a0c00347210bc9a0f859657b8a138c3867e
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e17960e..6bf574a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,15 @@ if(${CMAKE_VERSION} VERSION_GREATER 2.8.3)
cmake_policy(SET CMP0017 NEW)
endif()
+if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC)
+ add_definitions(-Werror)
+ add_definitions(-Wno-error=deprecated-declarations)
+ add_definitions(-Wdeprecated-declarations)
+ add_definitions(-Wno-error=cpp)
+ add_definitions(-Wcpp)
+endif (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC)
+
+
############
#############
## Options ##
_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic