Merged in dcourtois/premake-dev/FixNoWarnings (pull request #65)

fixed NoWarnings flag for vs201x generators
This commit is contained in:
Jason Perkins 2013-09-19 10:22:39 -04:00
commit 542d4c88fb
2 changed files with 6 additions and 6 deletions

View File

@ -1154,13 +1154,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