diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-02-26 16:56:09 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-02-26 16:56:09 +0000 |
commit | 0b901e4cdc55c0c05f72cfac03c25aea6f602d9e (patch) | |
tree | 5e4e52e0babd3ec7ebab00e63da0c1b834c03576 /gcc/c-decl.c | |
parent | 3753001420bcb94c509d028f41fc6f957b72e8d3 (diff) | |
download | gcc-0b901e4cdc55c0c05f72cfac03c25aea6f602d9e.zip gcc-0b901e4cdc55c0c05f72cfac03c25aea6f602d9e.tar.gz gcc-0b901e4cdc55c0c05f72cfac03c25aea6f602d9e.tar.bz2 |
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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index e8e7a45..f0b6463 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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; } |