From e0c72e782e0dc60432eb0d9e0c3a790e34dd2a9b Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 27 Feb 1993 19:15:08 +0000 Subject: [PATCH] (compile_file): Use pedwarn_with_decl to warn about functions declared static but not defined. From-SVN: r3560 --- gcc/toplev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.30.2