From d1b0168185c85ebe41859ae9d2bdf9251103f144 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 10 May 1996 18:30:07 +0000 Subject: [PATCH] (compile_file): Don't warn about artificial functions declared static and not defined. From-SVN: r11966 --- gcc/toplev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/toplev.c b/gcc/toplev.c index 0da807a7dee..c3cb8b74dbf 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2398,6 +2398,7 @@ compile_file (name) || TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))) && DECL_INITIAL (decl) == 0 && DECL_EXTERNAL (decl) + && ! DECL_ARTIFICIAL (decl) && ! TREE_PUBLIC (decl)) { pedwarn_with_decl (decl, -- 2.30.2