From d20ae480d1dd1f099bf32fd7551b89373cbfca25 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 22 Sep 1996 11:37:08 -0400 Subject: [PATCH] (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 --- gcc/c-decl.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.7.4