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]
Other format: [Raw text]

[Committed] Enable -WWsequence-point for C++ and ObjC++


Since the patch on June 21, -Wall enabled -Wsequence-point for C++ too and
actually started to print out the sequence point warnings in C++ also.
This patch allows to turn on and off the warning with the option which
does it for C and ObjC.

Committed as obvious.

Thanks,
Andrew Pinski

ChangeLog:
	* c.opt (Wsequence-point): Enable for C++ and ObjC++.

Index: c.opt
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c.opt,v
retrieving revision 1.29
diff -u -p -r1.29 c.opt
--- c.opt       25 Jun 2004 21:24:21 -0000      1.29
+++ c.opt       28 Jun 2004 01:56:58 -0000
@@ -371,7 +371,7 @@ ObjC ObjC++ Var(warn_selector)
 Warn if a selector has multiple methods
 
 Wsequence-point
-C ObjC Var(warn_sequence_point)
+C ObjC C++ ObjC++ Var(warn_sequence_point)
 Warn about possible violations of sequence point rules
 
 Wsign-compare


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