diff options
author | Pasi Keranen <pasi.keranen@qt.io> | 2018-08-30 07:28:58 +0300 |
---|---|---|
committer | Pasi Keränen <pasi.keranen@qt.io> | 2018-08-30 06:55:12 +0000 |
commit | 1c3fbdcb5048312e5806a86ba310ac2c1935fc38 (patch) | |
tree | 55b086a53f0c43b5d7fa2efc0726a3407e321d1e | |
parent | faed1c2e4121a244938ab691bdbb0adb9f4bb85e (diff) |
Suppress warnings from 3rd party library code with clang
Building ColladaDOM 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: Idfabfc6c3a36537be55c247f4bff5aa43118c2cb
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
-rw-r--r-- | ColladaDOM.pro | 12 | ||||
-rw-r--r-- | TinyXML/TinyXML.pro | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ColladaDOM.pro b/ColladaDOM.pro index 9c974b8..0fd4b30 100644 --- a/ColladaDOM.pro +++ b/ColladaDOM.pro @@ -10,6 +10,18 @@ win32 { } } +#Ignore selected warnings from Collada lib (as it's a 3rd party lib) +clang { +QMAKE_CXXFLAGS_WARN_ON = -Wall \ + -Wno-unused-parameter \ + -Wno-header-guard \ + -Wno-null-conversion \ + -Wno-overloaded-virtual \ + -Wno-unused-function \ + -Wno-old-style-cast \ + -Wno-logical-op-parentheses +} + INCLUDEPATH += \ ../pcre/8.31 \ TinyXML/2.5.3 \ diff --git a/TinyXML/TinyXML.pro b/TinyXML/TinyXML.pro index da02a3a..dce9ffd 100644 --- a/TinyXML/TinyXML.pro +++ b/TinyXML/TinyXML.pro @@ -5,3 +5,9 @@ CONFIG += staticlib include(TinyXML.pri) load(qt_helper_lib) + +clang { +#Ignore selected warnings from TinyXML lib (as it's a 3rd party lib) +QMAKE_CXXFLAGS_WARN_ON = -Wall \ + -Wno-logical-op-parentheses +} |