summaryrefslogtreecommitdiffstats
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-09 21:22:27 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-09 21:22:27 +0000
commitcbb0dbb0a06e5c44e3883eaad8a1ced84647ac41 (patch)
treebef9776a44038f6f2aa0dbaaf816e8fb1684d3b5 /gcc/c-common.c
parent6b1c8423cc9f42c316492b525184ce5979eb0b24 (diff)
downloadppe42-gcc-cbb0dbb0a06e5c44e3883eaad8a1ced84647ac41.tar.gz
ppe42-gcc-cbb0dbb0a06e5c44e3883eaad8a1ced84647ac41.zip
PR c/18322
* c-common.c (fname_decl): Don't use line number of decl in diagnostic. testsuite: * gcc.dg/func-outside-1.c, gcc.dg/func-outside-2.c: Correct expected diagnostic location. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90365 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 3a13dc78822..413508e50dd 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -828,7 +828,7 @@ fname_decl (unsigned int rid, tree id)
input_location = saved_location;
}
if (!ix && !current_function_decl)
- pedwarn ("%J%qD is not defined outside of function scope", decl, decl);
+ pedwarn ("%qD is not defined outside of function scope", decl);
return decl;
}
OpenPOWER on IntegriCloud