Commit e041d3e9 by Richard Kenner

(fatal, error): Make first arg const to avoid warning.

From-SVN: r9436
parent a3fd7507
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
contain debugging information specified by the GNU compiler contain debugging information specified by the GNU compiler
in the form of comments (the mips assembler does not support in the form of comments (the mips assembler does not support
assembly access to debug information). assembly access to debug information).
Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc. Copyright (C) 1991, 1993, 1994. 1995 Free Software Foundation, Inc.
Contributed by Michael Meissner, meissner@osf.org Contributed by Michael Meissner, meissner@osf.org
This file is part of GNU CC. This file is part of GNU CC.
...@@ -671,8 +671,8 @@ extern PTR_T xrealloc __proto((PTR_T, Size_t)); ...@@ -671,8 +671,8 @@ extern PTR_T xrealloc __proto((PTR_T, Size_t));
extern void xfree __proto((PTR_T)); extern void xfree __proto((PTR_T));
#ifdef HAVE_VPRINTF #ifdef HAVE_VPRINTF
extern void fatal PVPROTO((char *format, ...)); extern void fatal PVPROTO((const char *format, ...));
extern void error PVPROTO((char *format, ...)); extern void error PVPROTO((const char *format, ...));
#else #else
/* We must not provide any prototype here, even if ANSI C. */ /* We must not provide any prototype here, even if ANSI C. */
extern void fatal __proto(()); extern void fatal __proto(());
...@@ -5606,7 +5606,7 @@ free_thead (ptr) ...@@ -5606,7 +5606,7 @@ free_thead (ptr)
/*VARARGS*/ /*VARARGS*/
void void
fatal VPROTO((char *format, ...)) fatal VPROTO((const char *format, ...))
{ {
#ifndef __STDC__ #ifndef __STDC__
char *format; char *format;
...@@ -5636,7 +5636,7 @@ fatal VPROTO((char *format, ...)) ...@@ -5636,7 +5636,7 @@ fatal VPROTO((char *format, ...))
/*VARARGS*/ /*VARARGS*/
void void
error VPROTO((char *format, ...)) error VPROTO((const char *format, ...))
{ {
#ifndef __STDC__ #ifndef __STDC__
char *format; char *format;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment