Merged in dcourtois/premake-dev/FixNoWarnings (pull request #65)
fixed NoWarnings flag for vs201x generators
This commit is contained in:
commit
542d4c88fb
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user