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

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
parent b3eaaf1a
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment