From: Richard Kenner Date: Sun, 22 Sep 1996 15:37:08 +0000 (-0400) Subject: (pushdecl): Check new declaration actually conflicts before warning about implicit... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d20ae480d1dd1f099bf32fd7551b89373cbfca25;p=platform%2Fupstream%2Fgcc.git (pushdecl): Check new declaration actually conflicts before warning about implicit external vs. (pushdecl): Check new declaration actually conflicts before warning about implicit external vs. static declarations. From-SVN: r12772 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index cb59a08..039670e 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2007,6 +2007,7 @@ pushdecl (x) /* Don't test for DECL_EXTERNAL, because grokdeclarator sets this for all functions. */ && ! TREE_PUBLIC (x) + && (TREE_CODE (x) == FUNCTION_DECL || b == global_binding_level) /* We used to warn also for explicit extern followed by static, but sometimes you need to do it that way. */ && IDENTIFIER_IMPLICIT_DECL (name) != 0)