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 8ea4cd768532d3be3d88929e52cc08961198daa0..2e6fa9406a6be13bea7f043a2b68270d934f6d74 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 464cab8466f856c04d0cda951a6cc85d887dbc08..32e600b637d7c6327a72bc72a3468ab71f2d99f9 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