summaryrefslogtreecommitdiffstats
path: root/pcre.pro
diff options
context:
space:
mode:
authorPasi Keranen <pasi.keranen@qt.io>2018-08-30 11:36:45 +0300
committerPasi Keränen <pasi.keranen@qt.io>2018-08-30 08:44:28 +0000
commit26aa6b0ca74bc0fc355963cc582c47289f5d889b (patch)
tree2b24c0cb21d073d7e43bc29912f4f0d01c271a0b /pcre.pro
parentd654e6661494af090b636c66bac7db8fa055d45d (diff)
Suppress warnings from 3rd party library code with clangHEADmaster
Building pcre project does still produce 4 "file has no symbols" warnings that are not possible to suppress at the moment due to QTCREATORBUG-13111. Task-number: QT3DS-479 Change-Id: I5e440dcb3b7049baabe8a2ab97533a4666149e20 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'pcre.pro')
-rw-r--r--pcre.pro13
1 files changed, 13 insertions, 0 deletions
diff --git a/pcre.pro b/pcre.pro
index 9ae1bff..223ccfc 100644
--- a/pcre.pro
+++ b/pcre.pro
@@ -18,6 +18,19 @@ INCLUDEPATH += 8.31/macosx
INCLUDEPATH += 8.31
+clang {
+#Ignore selected warnings from pcre lib (as it's a 3rd party lib)
+QMAKE_CXXFLAGS_WARN_ON = -Wall \
+ -Wno-unused-parameter \
+ -Wno-missing-field-initializers \
+ -Wno-unused-variable
+
+QMAKE_CFLAGS_WARN_ON = -Wall \
+ -Wno-unused-parameter \
+ -Wno-missing-field-initializers \
+ -Wno-unused-variable
+}
+
include(pcre.pri)
load(qt_helper_lib)