]> gcc.gnu.org Git - gcc.git/commitdiff
toplev.c (warn_deprecated_use): Add warning control to warning call.
authorDJ Delorie <dj@redhat.com>
Fri, 22 Jul 2005 02:10:23 +0000 (22:10 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Fri, 22 Jul 2005 02:10:23 +0000 (22:10 -0400)
* toplev.c (warn_deprecated_use): Add warning control to warning
call.

From-SVN: r102264

gcc/ChangeLog
gcc/toplev.c

index 0db59f138ef0a60801a270087e33934123e2c6ad..34b0263e3188023ce7e0ad65e604513349ff772e 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-21  DJ Delorie  <dj@redhat.com>
+
+       * toplev.c (warn_deprecated_use): Add warning control to warning
+       call.
+
 2005-07-21  Richard Henderson  <rth@redhat.com>
 
        PR tree-opt/22504
index 368e9e60b20cf8adc2ba87a1b7ce91d54a55247a..5ad62dd6ecfe2e6671225c7173f5ad2571ad5e51 100644 (file)
@@ -875,7 +875,8 @@ warn_deprecated_use (tree node)
   if (DECL_P (node))
     {
       expanded_location xloc = expand_location (DECL_SOURCE_LOCATION (node));
-      warning (0, "%qs is deprecated (declared at %s:%d)",
+      warning (OPT_Wdeprecated_declarations,
+              "%qs is deprecated (declared at %s:%d)",
               IDENTIFIER_POINTER (DECL_NAME (node)),
               xloc.file, xloc.line);
     }
@@ -898,18 +899,20 @@ warn_deprecated_use (tree node)
          expanded_location xloc
            = expand_location (DECL_SOURCE_LOCATION (decl));
          if (what)
-           warning (0, "%qs is deprecated (declared at %s:%d)", what,
-                      xloc.file, xloc.line);
+           warning (OPT_Wdeprecated_declarations,
+                    "%qs is deprecated (declared at %s:%d)", what,
+                    xloc.file, xloc.line);
          else
-           warning (0, "type is deprecated (declared at %s:%d)",
+           warning (OPT_Wdeprecated_declarations,
+                    "type is deprecated (declared at %s:%d)",
                     xloc.file, xloc.line);
        }
       else
        {
          if (what)
-           warning (0, "%qs is deprecated", what);
+           warning (OPT_Wdeprecated_declarations, "%qs is deprecated", what);
          else
-           warning (0, "type is deprecated");
+           warning (OPT_Wdeprecated_declarations, "type is deprecated");
        }
     }
 }
This page took 0.072567 seconds and 5 git commands to generate.