Bug 161129

Summary: [batch][compiler] Add -warn:all to report all warnings
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: amj87.iitr, philippe_mulet
Version: 3.3   
Target Milestone: 3.8 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix
none
Proposed fix none

Description Olivier Thomann CLA 2006-10-16 15:52:17 EDT
In the batch compiler, there is no way right now to easily report all posssible warnings. We should add an option for this.
Could be -warn:all ?
Comment 1 Olivier Thomann CLA 2011-08-18 13:22:54 EDT
Created attachment 201731 [details]
Proposed fix

This doesn't support the case where you do:
-warn:all,-unused

which would trigger all warnings except for the unused warnings.

It only supports -warn:all which triggers all warnings. Any usage of -warn:.... afterwards would reset the warnings to the default level.
Comment 2 Olivier Thomann CLA 2011-08-18 14:05:12 EDT
Created attachment 201734 [details]
Proposed fix

More complete patch. It supports the usage of '+' and '-' inside multiple warning tokens, but it stills support multiple warning options on the command line.
Comment 3 Olivier Thomann CLA 2011-10-02 19:41:43 EDT
This is useful when testing warnings in the compiler.
Comment 4 Olivier Thomann CLA 2011-10-02 19:57:36 EDT
Fixed for 3.8M3.
Commit f363db69d77a20757ac0ea9e878cf9c696cd79df
Comment 5 Ayushman Jain CLA 2011-10-24 16:17:32 EDT
Verified using build N20111022-2000.