diff options
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 eb4a0c6..d83d6c5 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -840,6 +840,7 @@ check_global_declarations (tree *vec, int len) && DECL_INITIAL (decl) == 0 && DECL_EXTERNAL (decl) && ! DECL_ARTIFICIAL (decl) + && ! TREE_NO_WARNING (decl) && ! TREE_PUBLIC (decl) && (warn_unused_function || TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)))) |