diff options
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index b628ac4..c31c671 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4266,21 +4266,6 @@ c_init_attributes (void) #undef DEF_ATTR_TREE_LIST } -/* Output a -Wshadow warning MSGCODE about NAME, and give the location - of the previous declaration DECL. */ -void -shadow_warning (enum sw_kind msgcode, const char *name, tree decl) -{ - static const char *const msgs[] = { - /* SW_PARAM */ N_("declaration of \"%s\" shadows a parameter"), - /* SW_LOCAL */ N_("declaration of \"%s\" shadows a previous local"), - /* SW_GLOBAL */ N_("declaration of \"%s\" shadows a global declaration") - }; - - warning (msgs[msgcode], name); - warning ("%Jshadowed declaration is here", decl); -} - /* Attribute handlers common to C front ends. */ /* Handle a "packed" attribute; arguments as in |