forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
ef37452cfc
commit
d1b77f2c79
@@ -120,6 +120,9 @@ isEmpty(LLVM_VERSION) {
|
|||||||
LLVM_BINDIR = $$quote($$system($$llvm_config --bindir, lines))
|
LLVM_BINDIR = $$quote($$system($$llvm_config --bindir, lines))
|
||||||
LLVM_INCLUDEPATH = $$system($$llvm_config --includedir, lines)
|
LLVM_INCLUDEPATH = $$system($$llvm_config --includedir, lines)
|
||||||
msvc {
|
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)
|
LLVM_STATIC_LIBS_STRING += $$system($$llvm_config --libnames, lines)
|
||||||
} else {
|
} else {
|
||||||
LLVM_STATIC_LIBS_STRING += $$system($$llvm_config --libs, lines)
|
LLVM_STATIC_LIBS_STRING += $$system($$llvm_config --libs, lines)
|
||||||
|
Reference in New Issue
Block a user