From e682b087796175b17a97084575c3e04d50ade3b6 Mon Sep 17 00:00:00 2001 From: dcourtois Date: Wed, 18 Sep 2013 11:37:36 +0200 Subject: [PATCH] fixed NoWarnings flag for vs201x generators --- src/actions/vstudio/vs2010_vcxproj.lua | 8 ++++---- tests/actions/vstudio/vc2010/test_compile_settings.lua | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/actions/vstudio/vs2010_vcxproj.lua b/src/actions/vstudio/vs2010_vcxproj.lua index 80b3e490..064a927a 100644 --- a/src/actions/vstudio/vs2010_vcxproj.lua +++ b/src/actions/vstudio/vs2010_vcxproj.lua @@ -1120,13 +1120,13 @@ function vc2010.warningLevel(cfg) - local w = 3 + local w = "Level3" if cfg.flags.NoWarnings then - w = 0 + w = "TurnOffAllWarnings" elseif cfg.flags.ExtraWarnings then - w = 4 + w = "Level4" end - _p(3,'Level%d', w) + vc2010.element(3, "WarningLevel", nil, "%s", w) end diff --git a/tests/actions/vstudio/vc2010/test_compile_settings.lua b/tests/actions/vstudio/vc2010/test_compile_settings.lua index 647ef4d0..62f19ee6 100644 --- a/tests/actions/vstudio/vc2010/test_compile_settings.lua +++ b/tests/actions/vstudio/vc2010/test_compile_settings.lua @@ -99,7 +99,7 @@ test.capture [[ NotUsing - Level0 + TurnOffAllWarnings ]] end @@ -113,7 +113,7 @@ test.capture [[ NotUsing - Level0 + TurnOffAllWarnings ]] end