summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-19 10:51:52 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-19 10:51:52 +0000
commit23ce1cf63559982ea173f6d8e226952fac755594 (patch)
tree9b4a7eef804f59cfdc347e357b8953804bf5aefc
parent86895a67469aadf6a4a9080b1e78ec985c9efc30 (diff)
downloadgcc-23ce1cf63559982ea173f6d8e226952fac755594.tar.gz
2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* c-common.c (warn_for_collisions_1): Use appropriate option when warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132428 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-common.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1503d78ffa5..1e594de1cca 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ * c-common.c (warn_for_collisions_1): Use appropriate option when
+ warning.
+
2008-02-19 Nick Clifton <nickc@redhat.com>
PR other/31349
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 1ba5c785c79..59efb38e796 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -1528,7 +1528,8 @@ warn_for_collisions_1 (tree written, tree writer, struct tlist *list,
&& DECL_NAME (list->expr))
{
warned_ids = new_tlist (warned_ids, written, NULL_TREE);
- warning (0, "operation on %qE may be undefined", list->expr);
+ warning (OPT_Wsequence_point, "operation on %qE may be undefined",
+ list->expr);
}
list = list->next;
}