From: Richard Stallman Date: Sat, 27 Feb 1993 19:15:08 +0000 (+0000) Subject: (compile_file): Use pedwarn_with_decl to warn about X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0c72e782e0dc60432eb0d9e0c3a790e34dd2a9b;p=gcc.git (compile_file): Use pedwarn_with_decl to warn about functions declared static but not defined. From-SVN: r3560 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index 263ff676b7a..e0575dc7900 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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. */