From 26aa6b0ca74bc0fc355963cc582c47289f5d889b Mon Sep 17 00:00:00 2001 From: Pasi Keranen Date: Thu, 30 Aug 2018 11:36:45 +0300 Subject: Suppress warnings from 3rd party library code with clang 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 --- pcre.pro | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) -- cgit v1.2.3