Issue Details (XML | Word | Printable)

Key: BOO-1125
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Cedric Vivier
Reporter: Cedric Vivier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Warning suppression/promotion options

Created: 20/Jan/09 06:04 PM   Updated: 23/Jan/09 03:16 AM   Resolved: 23/Jan/09 03:16 AM
Return to search
Component/s: Command line tools, Compiler
Affects Version/s: 0.8.2
Fix Version/s: 0.9

Time Tracking:
Not Specified


 Description  « Hide

Introduce two new compiler options (booc/nant/msbuild):
-nowarn:BCW0001,...
-warnaserror:BCW0001,...

In the CompilerParameters, add four methods:
SuppressWarning(string code)
RestoreWarning(string code)
PromoteWarningAsError(string code)
RevokeWarningAsError(string code)

Internally it uses Adding event on CompilerWarningCollection, however this provides an easier
alternative wrt the suppression/promotion of warnings (especially wrt BOO-1126)



Cedric Vivier added a comment - 23/Jan/09 03:16 AM

Landed in rev. 3170.