public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/28533]  New: [ecj] Default warnings
@ 2006-07-29 15:00 mark at gcc dot gnu dot org
  2006-07-29 15:41 ` [Bug java/28533] " bkoz at gcc dot gnu dot org
  2006-07-31 16:29 ` tromey at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: mark at gcc dot gnu dot org @ 2006-07-29 15:00 UTC (permalink / raw)
  To: java-prs

ecj has a lot of default warnings on that are a bit obnoxious. It would be nice
to have a set of default warnings that people would actually use (currently it
seems people just disable them all).

GNU Classpath for example disables all the following to get more sane warning
results: -warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast

Especially the serial and unused (imports) warnings don't add much value since
they cannot point out any coding mistake. They would be nice options for a lint
like tool though.


-- 
           Summary: [ecj] Default warnings
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mark at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28533


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/28533] [ecj] Default warnings
  2006-07-29 15:00 [Bug java/28533] New: [ecj] Default warnings mark at gcc dot gnu dot org
@ 2006-07-29 15:41 ` bkoz at gcc dot gnu dot org
  2006-07-31 16:29 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-07-29 15:41 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from bkoz at gcc dot gnu dot org  2006-07-29 15:41 -------
Is there a way to map ecj's warnings options onto gcc's existing warning flags?

-w
-W
-Wextra

?

deprecation == -Wno-deprecated-declarations
serial == ??
typeHiding == -Wshadow
unchecked == ?
unused == -Wunused (but for importing packages, hmmm)
varargsCast == ?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28533


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/28533] [ecj] Default warnings
  2006-07-29 15:00 [Bug java/28533] New: [ecj] Default warnings mark at gcc dot gnu dot org
  2006-07-29 15:41 ` [Bug java/28533] " bkoz at gcc dot gnu dot org
@ 2006-07-31 16:29 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-07-31 16:29 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2006-07-31 16:29 -------
Yes, the current 'ecj1' driver translates gnu-style options to eclipse-style
options.  So instead of funkyCaseWarning we have funky-case-warning, etc.
Also we accept some "legacy" warning names, -Wno-foo, and the like.
I didn't look too much at supporting names similar to what the rest of GCC
supports, but this is a good idea.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-07-31 16:29:06
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28533


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-31 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-29 15:00 [Bug java/28533] New: [ecj] Default warnings mark at gcc dot gnu dot org
2006-07-29 15:41 ` [Bug java/28533] " bkoz at gcc dot gnu dot org
2006-07-31 16:29 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).