summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2017-03-22 14:11:35 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-22 22:01:45 +0000
commit4d1eff5e1d55240909baffff590e534fdea89991 (patch)
treeb8306121a6f16207c346507f4de174b973cde608 /tools
parent843cc55f5fa064514246e24e9f9ffcbb3335b1df (diff)
Turn off MSVC warnings about unused variables/parameters
This is consistent with what we do for gcc/clang. Change-Id: Ibda94dbc0c506c4a8053e0e3b2da25fa7dbed3a8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmake/mkspecs/features/gn_generator.prf2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/qmake/mkspecs/features/gn_generator.prf b/tools/qmake/mkspecs/features/gn_generator.prf
index 24a9b671..91c045cf 100644
--- a/tools/qmake/mkspecs/features/gn_generator.prf
+++ b/tools/qmake/mkspecs/features/gn_generator.prf
@@ -126,6 +126,8 @@ for (imp, GN_IMPORTS): GN_CONTENTS += " import(\"$$imp\")"
gcc|clang {
QMAKE_CXXFLAGS += "-Wno-unused-parameter"
QMAKE_CXXFLAGS += "-Wno-unused-variable"
+} else:msvc {
+ QMAKE_CXXFLAGS += /wd4100 /wd4101
}
!isEmpty(QMAKE_CXXFLAGS) {