diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-01-08 07:11:41 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-08 23:41:01 +0100 |
commit | 66e72c2cf08c2d2c381c6c22e4760d0df758af52 (patch) | |
tree | a5187cfbde4efa4edf11388a1afd120396e6c47c /src/qml/qml.pro | |
parent | 2f9099443d9acd6583e92785afbb38b2e4dcbfd5 (diff) |
Fix broken build with Clang < 3.4 after 60aed669345be33b916c445565
The -Wunused-const-variable option was added in Clang 3.4 and is not yet
supported on Apple's Clang. This test needs to be extended with the
Apple Clang version that supports the option.
Change-Id: Ief6ece91f1c0200c3359e74dafca4b893fcde7ca
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/qml/qml.pro')
-rw-r--r-- | src/qml/qml.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml.pro b/src/qml/qml.pro index d0f655609e..79e83a1d47 100644 --- a/src/qml/qml.pro +++ b/src/qml/qml.pro @@ -21,7 +21,8 @@ QMAKE_DOCS = $$PWD/doc/qtqml.qdocconf # 2415: variable "xx" of static storage duration was declared but never referenced # unused variable 'xx' [-Werror,-Wunused-const-variable] intel_icc: WERROR += -ww2415 -clang: WERROR += -Wno-error=unused-const-variable +clang:if(greaterThan(QT_CLANG_MAJOR_VERSION, 3)|greaterThan(QT_CLANG_MINOR_VERSION, 3)): \ + WERROR += -Wno-error=unused-const-variable load(qt_module) |