Bug 161129 - [batch][compiler] Add -warn:all to report all warnings
Summary: [batch][compiler] Add -warn:all to report all warnings
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.8 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-16 15:52 EDT by Olivier Thomann CLA
Modified: 2011-10-24 16:17 EDT (History)
2 users (show)

See Also:


Attachments
Proposed fix (1.66 KB, patch)
2011-08-18 13:22 EDT, Olivier Thomann CLA
no flags Details | Diff
Proposed fix (9.75 KB, patch)
2011-08-18 14:05 EDT, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.