diff options
Diffstat (limited to '3rdparty/genie/src/actions/vstudio/vs200x_vcproj.lua')
-rw-r--r-- | 3rdparty/genie/src/actions/vstudio/vs200x_vcproj.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/3rdparty/genie/src/actions/vstudio/vs200x_vcproj.lua b/3rdparty/genie/src/actions/vstudio/vs200x_vcproj.lua index e2d8f5c5163..6ea046330aa 100644 --- a/3rdparty/genie/src/actions/vstudio/vs200x_vcproj.lua +++ b/3rdparty/genie/src/actions/vstudio/vs200x_vcproj.lua @@ -313,7 +313,13 @@ _p(4,'UsePrecompiledHeader="%s"', iif(cfg.flags.NoPCH, 0, 2)) end - _p(4,'WarningLevel="%s"', iif(cfg.flags.ExtraWarnings, 4, 3)) + if cfg.flags.ExtraWarnings then + _p(4,'WarningLevel="%s"', 4) + elseif cfg.flags.MinimumWarnings then + _p(4,'WarningLevel="%s"', 1) + else + _p(4,'WarningLevel="%s"', 3) + end if cfg.flags.FatalWarnings then _p(4,'WarnAsError="%s"', bool(true)) |