re PR c++/15145 (Implementing -Wsequence-point for C++ would be very useful)
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 28 Jun 2004 01:58:24 +0000 (01:58 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 28 Jun 2004 01:58:24 +0000 (18:58 -0700)
2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r83758

gcc/ChangeLog
gcc/c.opt

index 8ea4cd7..2e6fa94 100644 (file)
@@ -1,5 +1,8 @@
 2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
 
+       PR c++/15145
+       * c.opt (Wsequence-point): Enable for C++ and ObjC++.
+
        PR c/14963
        * c-decl.c (start_decl): Check for null types.
 
index 464cab8..32e600b 100644 (file)
--- a/gcc/c.opt
+++ b/gcc/c.opt
@@ -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