fixed NoWarnings flag for vs201x generators

This commit is contained in:
dcourtois 2013-09-18 11:37:36 +02:00
parent 68c26b0e38
commit e682b08779
2 changed files with 6 additions and 6 deletions

View File

@ -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,'<WarningLevel>Level%d</WarningLevel>', w)
vc2010.element(3, "WarningLevel", nil, "%s", w)
end

View File

@ -99,7 +99,7 @@
test.capture [[
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level0</WarningLevel>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
]]
end
@ -113,7 +113,7 @@
test.capture [[
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level0</WarningLevel>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
]]
end