From: Manuel López-Ibáñez Date: Tue, 19 Feb 2008 10:51:52 +0000 (+0000) Subject: c-common.c (warn_for_collisions_1): Use appropriate option when warning. X-Git-Tag: releases/gcc-4.4.0~6419 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffc301737217b196beaccb2a970e179fa716e5bb;p=thirdparty%2Fgcc.git c-common.c (warn_for_collisions_1): Use appropriate option when warning. 2008-02-19 Manuel Lopez-Ibanez * c-common.c (warn_for_collisions_1): Use appropriate option when warning. From-SVN: r132428 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1503d78ffa5d..1e594de1cca3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-02-19 Manuel Lopez-Ibanez + + * c-common.c (warn_for_collisions_1): Use appropriate option when + warning. + 2008-02-19 Nick Clifton PR other/31349 diff --git a/gcc/c-common.c b/gcc/c-common.c index 1ba5c785c79b..59efb38e7961 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; }