(compile_file): For static decl never defined,
authorRichard Stallman <rms@gnu.org>
Sat, 19 Jun 1993 22:34:05 +0000 (22:34 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 19 Jun 1993 22:34:05 +0000 (22:34 +0000)
use just warning, not pedwarn.

From-SVN: r4702

gcc/toplev.c

index a7db37c1132879d9d76ffdbaa2438386ee24e343..1e33806ee635da7c4d22432e0752775335b2c138 100644 (file)
@@ -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;