Commit d1b01681 by Jason Merrill

(compile_file): Don't warn about artificial functions

        declared static and not defined.

From-SVN: r11966
parent 5b7540b6
...@@ -2398,6 +2398,7 @@ compile_file (name) ...@@ -2398,6 +2398,7 @@ compile_file (name)
|| TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))) || TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)))
&& DECL_INITIAL (decl) == 0 && DECL_INITIAL (decl) == 0
&& DECL_EXTERNAL (decl) && DECL_EXTERNAL (decl)
&& ! DECL_ARTIFICIAL (decl)
&& ! TREE_PUBLIC (decl)) && ! TREE_PUBLIC (decl))
{ {
pedwarn_with_decl (decl, pedwarn_with_decl (decl,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment