win: Pass /W4 in front of all the -wd flags.
authorNico Weber <nicolasweber@gmx.de>
Wed, 23 Dec 2015 02:38:31 +0000 (02:38 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 23 Dec 2015 02:38:31 +0000 (02:38 +0000)
commit5a39c0c83b3b07485a09cea2020f78309fb3ce7c
tree1989903da2efc88a5be95f0952fdb30b695e5ba8
parent073a62bc1d896ee8afb5b178f2235fb699498804
win: Pass /W4 in front of all the -wd flags.

This should fix many many -Wunused-parameter warnings in self-host builds on
Windows after r255382.  cl.exe doesn't care about the order of /W4 and
/wd flags, but clang-cl currently does (just like -Wno-foo -Wall order
matters for clang).  We might want to change how clang-cl behaves in
the future, but until then this change makes self-host builds much more
silent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256315 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake