Commit e0c72e78 by Richard Stallman

(compile_file): Use pedwarn_with_decl to warn about

functions declared static but not defined.

From-SVN: r3560
parent 86aed40b
......@@ -1874,7 +1874,7 @@ compile_file (name)
&& DECL_INITIAL (decl) == 0
&& DECL_EXTERNAL (decl)
&& ! TREE_PUBLIC (decl))
warning_with_decl (decl, "`%s' declared `static' but never defined");
pedwarn_with_decl (decl, "`%s' declared `static' but never defined");
/* Warn about static fns or vars defined but not used,
but not about inline functions
since unused inline statics is normal practice. */
......
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