Re-fix the warning from cached-powers.cc
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 8 May 2014 06:58:01 +0000 (23:58 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 May 2014 23:55:18 +0000 (01:55 +0200)
This file is now getting included in a different module. See also
e02cb2b31ab0b171f11d278305d9f532f005bc80,
60aed669345be33b916c44556555b922aa3ed928, and
66e72c2cf08c2d2c381c6c22e4760d0df758af52.

Change-Id: Ic886bdf823d5dd6d9ae3df64608d8bb9d901661f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qmldevtools/qmldevtools.pro

index 25d6494..5af5443 100644 (file)
@@ -10,6 +10,12 @@ MODULE_PRIVATE_INCLUDES = \
     \$\$QT_MODULE_INCLUDE_BASE/QtQml/$$QT.qml.VERSION \
     \$\$QT_MODULE_INCLUDE_BASE/QtQml/$$QT.qml.VERSION/QtQml
 
+# 2415: variable "xx" of static storage duration was declared but never referenced
+# unused variable 'xx' [-Werror,-Wunused-const-variable]
+intel_icc: WERROR += -ww2415
+clang:if(greaterThan(QT_CLANG_MAJOR_VERSION, 3)|greaterThan(QT_CLANG_MINOR_VERSION, 3)): \
+    WERROR += -Wno-error=unused-const-variable
+
 load(qt_module)
 
 include(../3rdparty/masm/masm-defs.pri)