[ecj] Patch: FYI: add new -W options for ecj

Tom Tromey tromey@redhat.com
Tue Jul 18 21:04:00 GMT 2006


I'm checking this in on the gcj-eclipse branch.

This adds all the new warning options to lang.opt.
I haven't written documentation for them yet.  This at least lets
them work.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* lang.opt: Added missing -W options.

Index: lang.opt
===================================================================
--- lang.opt	(revision 115396)
+++ lang.opt	(working copy)
@@ -82,8 +82,7 @@
 --CLASSPATH	Deprecated; use --classpath instead
 
 faux-classpath
-Java Separate RejectNegative
-; Internal only
+Java Separate RejectNegative Undocumented
 
 fassert
 Java Var(flag_assert) Init(1)
@@ -208,3 +207,165 @@
 
 version
 Java
+
+;
+; Warnings handled by ecj.
+; FIXME: document them
+;
+
+Wconstructor-name
+Java
+
+Wpkg-default-method
+Java
+
+Wmasked-catch-block
+Java
+
+Wall-deprecation
+Java
+
+Wunused-local
+Java
+
+Wunused-argument
+Java
+
+Wunused-import
+Java
+
+Wunused-private
+Java
+
+Wunused-label
+Java
+
+Wlocal-hiding
+Java
+
+Wfield-hiding
+Java
+
+Wspecial-param-hiding
+Java
+
+Wcondition-assign
+Java
+
+Wsynthetic-access
+Java
+
+Wnls
+Java
+
+Wstatic-receiver
+Java
+
+Windirect-static
+Java
+
+Wno-effect-assign
+Java
+
+Wintf-non-inherited
+Java
+
+Wchar-concat
+Java
+
+Wserial
+Java
+
+Wempty-block
+Java
+
+Wuseless-type-check
+Java
+
+Wuncheck
+Java
+
+Wraw
+Java
+
+Wfinal-bound
+Java
+
+Wsuppress
+Java
+
+Wwarning-token
+Java
+
+Wunnecessary-else
+Java
+
+Wjavadoc
+Java
+
+Wall-javadoc
+Java
+
+Wtasks
+Java
+
+Wassert-identifier
+Java
+
+Wenum-identifier
+Java
+
+Wfinally
+Java
+
+Wunused-thrown
+Java
+
+Wunqualified-field
+Java
+
+Wtype-hiding
+Java
+
+Wvarargs-cast
+Java
+
+Wnull
+Java
+
+Wboxing
+Java
+
+Wover-ann
+Java
+
+Wdep-ann
+Java
+
+Wintf-annotation
+Java
+
+Wenum-switch
+Java
+
+Whiding
+Java
+
+Wstatic-access
+Java
+
+Wunused
+Java
+
+Wparam-assign
+Java
+
+Wdiscouraged
+Java
+
+Wforbidden
+Java
+
+Wfallthrough
+Java
+



More information about the Gcc-patches mailing list