2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Feb 2008 10:51:52 +0000 (10:51 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Feb 2008 10:51:52 +0000 (10:51 +0000)
* 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

gcc/ChangeLog
gcc/c-common.c

index 1503d78..1e594de 100644 (file)
@@ -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
index 1ba5c78..59efb38 100644 (file)
@@ -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;
     }