Clang: Suppress "unreferenced formal parameter" warnings on MSVC

They are triggered a lot in Clang headers.

Change-Id: I31f31a4f52e269d773cf1b41ad52f279ee368c2e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Orgad Shaneh
2018-07-15 15:12:14 +03:00
committed by Orgad Shaneh
parent ef37452cfc
commit d1b77f2c79

View File

@@ -120,6 +120,9 @@ isEmpty(LLVM_VERSION) {
LLVM_BINDIR = $$quote($$system($$llvm_config --bindir, lines))
LLVM_INCLUDEPATH = $$system($$llvm_config --includedir, lines)
msvc {
# CLANG-UPGRADE-CHECK: Remove suppression if this warning is resolved.
# Suppress unreferenced formal parameter warnings
QMAKE_CXXFLAGS += -wd4100
LLVM_STATIC_LIBS_STRING += $$system($$llvm_config --libnames, lines)
} else {
LLVM_STATIC_LIBS_STRING += $$system($$llvm_config --libs, lines)