From d1b77f2c79b23ca055c6fb2d04b1bcf1353073ec Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 15 Jul 2018 15:12:14 +0300 Subject: [PATCH] Clang: Suppress "unreferenced formal parameter" warnings on MSVC They are triggered a lot in Clang headers. Change-Id: I31f31a4f52e269d773cf1b41ad52f279ee368c2e Reviewed-by: Oswald Buddenhagen Reviewed-by: Ivan Donchevskii --- src/shared/clang/clang_installation.pri | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/clang/clang_installation.pri b/src/shared/clang/clang_installation.pri index f9eea556062..2d1be607487 100644 --- a/src/shared/clang/clang_installation.pri +++ b/src/shared/clang/clang_installation.pri @@ -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)