From 3ff0c9ed199501eb41de66f59b32252b42d9333a Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Mon, 28 Jun 2004 01:58:24 +0000 Subject: [PATCH] re PR c++/15145 (Implementing -Wsequence-point for C++ would be very useful) 2004-06-27 Andrew Pinski PR c++/15145 * c.opt (Wsequence-point): Enable for C++ and ObjC++. From-SVN: r83758 --- gcc/ChangeLog | 3 +++ gcc/c.opt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ea4cd76853..2e6fa9406a6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-06-27 Andrew Pinski + PR c++/15145 + * c.opt (Wsequence-point): Enable for C++ and ObjC++. + PR c/14963 * c-decl.c (start_decl): Check for null types. diff --git a/gcc/c.opt b/gcc/c.opt index 464cab8466f..32e600b637d 100644 --- 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 -- 2.30.2