qmake/vcxproj: resurrect support for /we compiler switch
The vcxproj format supports the /we compiler switch as TreatSpecificWarningsAsErrors tag. Support for this switch got lost during refactoring of the vc(x)proj generators for Qt 4.8.0. Task-number: QTBUG-29098 Change-Id: I607e907dcb9c1bc7d261053b6d757941ec7db822 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
28ee554b37
commit
a3d1d41d1d
@ -1412,7 +1412,7 @@ void VCXProjectWriter::write(XmlOutput &xml, const VCCLCompilerTool &tool)
|
||||
<< attrTagT(_StringPooling, tool.StringPooling)
|
||||
<< attrTagS(_StructMemberAlignment, toString(tool.StructMemberAlignment))
|
||||
<< attrTagT(_SuppressStartupBanner, tool.SuppressStartupBanner)
|
||||
//unused << attrTagS(_TreatSpecificWarningsAsErrors, tool.TreatSpecificWarningsAsErrors)
|
||||
<< attrTagX(_TreatSpecificWarningsAsErrors, tool.TreatSpecificWarningsAsErrors, ";")
|
||||
<< attrTagT(_TreatWarningAsError, tool.WarnAsError)
|
||||
<< attrTagT(_TreatWChar_tAsBuiltInType, tool.TreatWChar_tAsBuiltInType)
|
||||
<< attrTagT(_UndefineAllPreprocessorDefinitions, tool.UndefineAllPreprocessorDefinitions)
|
||||
|
@ -1117,6 +1117,12 @@ bool VCCLCompilerTool::parseOption(const char* option)
|
||||
case 'd':
|
||||
DisableSpecificWarnings += option+3;
|
||||
break;
|
||||
case 'e':
|
||||
if (config->CompilerVersion <= NET2008)
|
||||
AdditionalOptions += option;
|
||||
else
|
||||
TreatSpecificWarningsAsErrors += option + 3;
|
||||
break;
|
||||
default:
|
||||
AdditionalOptions += option;
|
||||
}
|
||||
|
@ -561,6 +561,7 @@ public:
|
||||
QStringList UndefinePreprocessorDefinitions;
|
||||
pchOption UsePrecompiledHeader;
|
||||
triState UseUnicodeForAssemblerListing;
|
||||
QStringList TreatSpecificWarningsAsErrors;
|
||||
triState WarnAsError;
|
||||
warningLevelOption WarningLevel;
|
||||
triState WholeProgramOptimization;
|
||||
|
Loading…
x
Reference in New Issue
Block a user