(compile_file): Use pedwarn_with_decl to warn about
authorRichard Stallman <rms@gnu.org>
Sat, 27 Feb 1993 19:15:08 +0000 (19:15 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 27 Feb 1993 19:15:08 +0000 (19:15 +0000)
functions declared static but not defined.

From-SVN: r3560

gcc/toplev.c

index 263ff676b7a6ef9a76860101774e0a7c828b171e..e0575dc790080a91cc87730cc66401e429c7dc8f 100644 (file)
@@ -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.  */