Browse Source

Introjucer: enabled the flag for warnings-as-errors for MSVC 2010 and later.

tags/2021-05-28
jules 11 years ago
parent
commit
e4d1d7deed
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h

+ 3
- 3
extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h View File

@@ -783,9 +783,6 @@ protected:
const String extraFlags (replacePreprocessorTokens (config, getExtraCompilerFlagsString()).trim());
if (extraFlags.isNotEmpty())
compiler->setAttribute ("AdditionalOptions", extraFlags);
if (config.areWarningsTreatedAsErrors())
compiler->setAttribute ("TreatWarningAsError", "true");
}
createToolElement (xml, "VCManagedResourceCompilerTool");
@@ -1252,6 +1249,9 @@ protected:
const String extraFlags (replacePreprocessorTokens (config, getExtraCompilerFlagsString()).trim());
if (extraFlags.isNotEmpty())
cl->createNewChildElement ("AdditionalOptions")->addTextElement (extraFlags + " %(AdditionalOptions)");
if (config.areWarningsTreatedAsErrors())
cl->createNewChildElement ("TreatWarningAsError")->addTextElement ("true");
}
{


Loading…
Cancel
Save