re PR c/24577 (diagnostic informative note labelled "error")

2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c/24577
	* c-decl.c (undeclared_variable): Use an informative note.

From-SVN: r157095
parent 37530014
2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/24577
* c-decl.c (undeclared_variable): Use an informative note.
2010-02-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43186
......
......@@ -2949,11 +2949,10 @@ undeclared_variable (location_t loc, tree id)
else
{
error_at (loc, "%qE undeclared (first use in this function)", id);
if (!already)
{
error_at (loc, "(Each undeclared identifier is reported only once");
error_at (loc, "for each function it appears in.)");
inform (loc, "each undeclared identifier is reported only"
" once for each function it appears in");
already = true;
}
......
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