This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: remove a couple warnings


This patch makes a couple changes to remove warnings reported by some
(IMHO) overly pedantic SGI compiler.

1999-04-19  Tom Tromey  <tromey@cygnus.com>

	* xref.h (enum): Removed trailing comma.

	* parse.y (resolve_qualified_expression_name): Added missing
	`break'.

I'm committing this.

Tom

Index: parse.y
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/parse.y,v
retrieving revision 1.74
diff -u -r1.74 parse.y
--- parse.y	1999/04/12 18:32:22	1.74
+++ parse.y	1999/04/19 17:11:10
@@ -6321,6 +6321,7 @@
 	default:
 	  /* Fix for -Wall Just go to the next statement. Don't
              continue */
+	  break;
 	}
 
       /* If we fall here, we weren't processing a (static) function call. */
Index: xref.h
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/xref.h,v
retrieving revision 1.2
diff -u -r1.2 xref.h
--- xref.h	1999/03/27 16:17:16	1.2
+++ xref.h	1999/04/19 17:11:10
@@ -30,7 +30,7 @@
 /* flag_emit_xref range of possible values. */
 
 enum {
-  XREF_NONE = 0,
+  XREF_NONE = 0
 };
 
 /* Lookup table to be used with the value of flag_emit_xref */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]