mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04:19 +00:00
Introjucer: enabled the flag for warnings-as-errors for MSVC 2010 and later.
This commit is contained in:
parent
e5b5a164eb
commit
e4d1d7deed
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue