diff options
| -rw-r--r-- | build/conf/compilers/msvc_compiler.conf | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/conf/compilers/msvc_compiler.conf b/build/conf/compilers/msvc_compiler.conf index a509b02348f..afd649f5750 100644 --- a/build/conf/compilers/msvc_compiler.conf +++ b/build/conf/compilers/msvc_compiler.conf @@ -54,15 +54,16 @@ when ($NO_WSHADOW == "yes") { } when ($NO_COMPILER_WARNINGS == "yes") { - C_WARNING_OPTS=/w when ($CLANG_CL == "yes") { # Though /w is intended to switch off all the warnings, # it does not switch at least -Wregister and -Wreserved-user-defined-literal under clang-cl. # # Use -Wno-everything to force warning suppression. - CXX_WARNING_OPTS=-Wno-everything + C_WARNING_OPTS = -Wno-everything + CXX_WARNING_OPTS = } otherwise { + C_WARNING_OPTS=/w CXX_WARNING_OPTS= } } |
