diff --git a/src/cc65/error.c b/src/cc65/error.c index b61312855..cba0a479e 100644 --- a/src/cc65/error.c +++ b/src/cc65/error.c @@ -147,7 +147,7 @@ void Fatal (const char* Format, ...) /* Print a message about a fatal error and die */ { va_list ap; - + const char* FileName; unsigned LineNum; if (CurTok.LI) { @@ -171,7 +171,7 @@ void Fatal (const char* Format, ...) -void Internal (char* Format, ...) +void Internal (const char* Format, ...) /* Print a message about an internal compiler error and die. */ { va_list ap; @@ -196,7 +196,7 @@ void Internal (char* Format, ...) /* Use abort to create a core dump */ abort (); -} +} @@ -211,4 +211,4 @@ void ErrorReport (void) - + diff --git a/src/cc65/error.h b/src/cc65/error.h index b10d786c6..cc5ddc733 100644 --- a/src/cc65/error.h +++ b/src/cc65/error.h @@ -76,7 +76,7 @@ void PPError (const char* Format, ...) attribute ((format (printf, 1, 2))); void Fatal (const char* Format, ...) attribute ((noreturn, format (printf, 1, 2))); /* Print a message about a fatal error and die */ -void Internal (char* Format, ...) attribute ((noreturn, format (printf, 1, 2))); +void Internal (const char* Format, ...) attribute ((noreturn, format (printf, 1, 2))); /* Print a message about an internal compiler error and die. */ void ErrorReport (void);