diff options
author | Jason Merrill <merrill@gnu.org> | 1996-05-10 18:30:07 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1996-05-10 18:30:07 +0000 |
commit | d1b0168185c85ebe41859ae9d2bdf9251103f144 (patch) | |
tree | c4b1b8059fddea9b2b4f99cd0579a3046756dc9b /gcc/toplev.c | |
parent | 5b7540b68a7f2f9b07fa52dbc3c6150e53f1f064 (diff) | |
download | gcc-d1b0168185c85ebe41859ae9d2bdf9251103f144.tar.gz |
(compile_file): Don't warn about artificial functions
declared static and not defined.
From-SVN: r11966
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |