summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-12-05 23:20:00 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-12-05 23:20:00 +0000
commit26f943fd3600236b05ab91a36f7ee8f1043c07af (patch)
treee2ef9f427adfe62b09b758c20b2ffdb1802526ba /gcc/c-common.h
parent8ca8f9a70b751319f7281564aa0ab0e93b3ef6e2 (diff)
downloadgcc-26f943fd3600236b05ab91a36f7ee8f1043c07af.tar.gz
c-common.c (shadow_warning): New function, moved from cp/decl.c.
* c-common.c (shadow_warning): New function, moved from cp/decl.c. * c-common.h (shadow_warning): New. * c-decl.c: Include c-common.h. (warn_if_shadowing): New, broken out of pushdecl. (pushdecl): Use warn_if_shadowing. (store_parm_decls): Prevent duplicate -Wshadow warnings. cp: * decl.c: Include c-common.h. (shadow_warning): Move to c-common.c. testsuite: * gcc.dg/Wshadow-1.c: New test. From-SVN: r47701
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 4ab415c1f1e..33835f653db 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -330,6 +330,8 @@ extern tree walk_stmt_tree PARAMS ((tree *,
extern void prep_stmt PARAMS ((tree));
extern void expand_stmt PARAMS ((tree));
extern void mark_stmt_tree PARAMS ((void *));
+extern void shadow_warning PARAMS ((const char *,
+ tree, tree));
/* Extra information associated with a DECL. Other C dialects extend
this structure in various ways. The C front-end only uses this