fixed NoWarnings flag for vs201x generators
This commit is contained in:
parent
68c26b0e38
commit
e682b08779
@ -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
|
||||
|
||||
|
||||
|
@ -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