]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-common.c (warn_for_collisions_1): Use appropriate option when warning.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 19 Feb 2008 10:51:52 +0000 (10:51 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 19 Feb 2008 10:51:52 +0000 (10:51 +0000)
2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

* c-common.c (warn_for_collisions_1): Use appropriate option when
warning.

From-SVN: r132428

gcc/ChangeLog
gcc/c-common.c

index 1503d78ffa5d195a03b06966e84d425b2cca97c9..1e594de1cca350d922d50303741993f40248e158 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 1ba5c785c79bee26b6d85a625ce56b155b02c62e..59efb38e7961578c9622482ca59edfb9d6d279d8 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;
     }