diff options
author | Richard Stallman <rms@gnu.org> | 1993-06-19 22:34:05 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-06-19 22:34:05 +0000 |
commit | aaf44ca2f1bd06f4885682c1e6b0030e343641ad (patch) | |
tree | 09db4787bf7445a2a474f743dcfea0655f872500 | |
parent | 4f2c8ebb159ca57bbea0bc9ec26d0e4621c72d80 (diff) | |
download | gcc-aaf44ca2f1bd06f4885682c1e6b0030e343641ad.zip gcc-aaf44ca2f1bd06f4885682c1e6b0030e343641ad.tar.gz gcc-aaf44ca2f1bd06f4885682c1e6b0030e343641ad.tar.bz2 |
(compile_file): For static decl never defined,
use just warning, not pedwarn.
From-SVN: r4702
-rw-r--r-- | gcc/toplev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index a7db37c..1e33806 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1939,7 +1939,11 @@ compile_file (name) && DECL_EXTERNAL (decl) && ! TREE_PUBLIC (decl)) { - pedwarn_with_decl (decl, + /* This should be a pedwarn, except that there is + no easy way to prevent it from happening when the + name is used only inside a sizeof. + This at least avoids being incorrect. */ + warning_with_decl (decl, "`%s' declared `static' but never defined"); /* This symbol is effectively an "extern" declaration now. */ TREE_PUBLIC (decl) = 1; |