mirror of
https://github.com/cc65/cc65.git
synced 2025-08-14 14:26:27 +00:00
Add gcc attributes, fixed a format string problem
git-svn-id: svn://svn.cc65.org/cc65/trunk@2315 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* common */
|
/* common */
|
||||||
|
#include "attrib.h"
|
||||||
#include "filepos.h"
|
#include "filepos.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -190,10 +191,10 @@ void PError (const FilePos* Pos, unsigned ErrNum, ...);
|
|||||||
void ErrorSkip (unsigned ErrNum, ...);
|
void ErrorSkip (unsigned ErrNum, ...);
|
||||||
/* Print an error message and skip the rest of the line */
|
/* Print an error message and skip the rest of the line */
|
||||||
|
|
||||||
void Fatal (unsigned FatNum, ...);
|
void Fatal (unsigned FatNum, ...) attribute ((noreturn));
|
||||||
/* Print a message about a fatal error and die */
|
/* Print a message about a fatal error and die */
|
||||||
|
|
||||||
void Internal (const char* Format, ...);
|
void Internal (const char* Format, ...) attribute((noreturn, format(printf,1,2)));
|
||||||
/* Print a message about an internal compiler error and die. */
|
/* Print a message about an internal compiler error and die. */
|
||||||
|
|
||||||
|
|
||||||
|
@@ -816,7 +816,7 @@ static void DoFileOpt (void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Internal ("Invalid OptNum: %l", OptNum);
|
Internal ("Invalid OptNum: %ld", OptNum);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user