aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-02-27 19:15:08 +0000
committerRichard Stallman <rms@gnu.org>1993-02-27 19:15:08 +0000
commite0c72e782e0dc60432eb0d9e0c3a790e34dd2a9b (patch)
treef74d1e2b290353cc781e58c8191bbc09e917537a
parent86aed40b1209fa7f270e0dbe980af9db281f9acb (diff)
downloadgcc-e0c72e782e0dc60432eb0d9e0c3a790e34dd2a9b.zip
gcc-e0c72e782e0dc60432eb0d9e0c3a790e34dd2a9b.tar.gz
gcc-e0c72e782e0dc60432eb0d9e0c3a790e34dd2a9b.tar.bz2
(compile_file): Use pedwarn_with_decl to warn about
functions declared static but not defined. From-SVN: r3560
-rw-r--r--gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 263ff67..e0575dc 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. */