toplev.h (pedwarn_with_file_and_line): Don't declare.
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sun, 4 May 2003 15:18:21 +0000 (15:18 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 4 May 2003 15:18:21 +0000 (15:18 +0000)
* toplev.h (pedwarn_with_file_and_line): Don't declare.
* diagnostic.c (pedwarn_with_file_and_line): Remove.

From-SVN: r66456

gcc/ChangeLog
gcc/diagnostic.c
gcc/toplev.h

index 31b5b87..98fcabc 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+       * toplev.h (pedwarn_with_file_and_line): Don't declare.
+       * diagnostic.c (pedwarn_with_file_and_line): Remove.
+
 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * varasm.c (assemble_variable): Don't use error_with_file_and_line.
index 5f3a6d0..58450b1 100644 (file)
@@ -993,23 +993,6 @@ pedwarn_with_decl VPARAMS ((tree decl, const char *msgid, ...))
   VA_CLOSE (ap);
 }
 
-/* Same as above but within the context FILE and LINE.  */
-void
-pedwarn_with_file_and_line VPARAMS ((const char *file, int line,
-                                    const char *msgid, ...))
-{
-  diagnostic_info diagnostic;
-  VA_OPEN (ap, msgid);
-  VA_FIXEDARG (ap, const char *, file);
-  VA_FIXEDARG (ap, int, line);
-  VA_FIXEDARG (ap, const char *, msgid);
-
-  diagnostic_set_info (&diagnostic, _(msgid), &ap, file, line,
-                       pedantic_error_kind ());
-  report_diagnostic (&diagnostic);
-  VA_CLOSE (ap);
-}
-
 /* Just apologize with MSGID.  */
 void
 sorry VPARAMS ((const char *msgid, ...))
index de13bc2..7da7654 100644 (file)
@@ -59,8 +59,6 @@ extern void error                     PARAMS ((const char *, ...));
 extern void fatal_error                        PARAMS ((const char *, ...))
                                               ATTRIBUTE_NORETURN;
 extern void pedwarn                    PARAMS ((const char *, ...));
-extern void pedwarn_with_file_and_line PARAMS ((const char *, int,
-                                                const char *, ...));
 extern void warning_with_file_and_line PARAMS ((const char *, int,
                                                 const char *, ...));
 extern void error_with_file_and_line   PARAMS ((const char *, int,