Oh GACK! src-clean doesn't quite work that easily since cleandist rebuilds the
[unix-history] / gnu / usr.bin / cc / common / toplev.c
index a7db37c..1e33806 100644 (file)
@@ -1939,7 +1939,11 @@ compile_file (name)
            && DECL_EXTERNAL (decl)
            && ! TREE_PUBLIC (decl))
          {
            && 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;
                               "`%s' declared `static' but never defined");
            /* This symbol is effectively an "extern" declaration now.  */
            TREE_PUBLIC (decl) = 1;