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 installed: another -Wtradtional !in_system_header check


Missed one.  Installed.

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.7507
diff -u -p -r1.7507 ChangeLog
--- ChangeLog	2000/08/22 23:13:12	1.7507
+++ ChangeLog	2000/08/23 00:59:53
@@ -1,3 +1,7 @@
+2000-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
+
 2000-08-22  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
 
 	* vax.h (ASM_SPEC): Pass `-J' to assembler.
Index: c-parse.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/c-parse.in,v
retrieving revision 1.50
diff -u -p -r1.50 c-parse.in
--- c-parse.in	2000/08/11 16:25:02	1.50
+++ c-parse.in	2000/08/23 00:59:57
@@ -413,7 +413,7 @@ unop:     '&'
 	| '+'
 		{ $$ = CONVERT_EXPR;
 ifc
-  if (warn_traditional)
+  if (warn_traditional && !in_system_header)
     warning ("traditional C rejects the unary plus operator");
 end ifc
 		}

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