X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fld65%2Ferror.h;h=2ce1c86011d76b73ed72c1f73d130277f882f0b6;hb=d7ddc3d12eb42664d7ab5f138993cb566dd51d11;hp=9f213abe2ea53da82328a77219543cf83eadbf14;hpb=53dd513176425872128ef26031d00952ef7a0628;p=cc65 diff --git a/src/ld65/error.h b/src/ld65/error.h index 9f213abe2..2ce1c8601 100644 --- a/src/ld65/error.h +++ b/src/ld65/error.h @@ -38,6 +38,11 @@ +/* common */ +#include "attrib.h" + + + /*****************************************************************************/ /* Data */ /*****************************************************************************/ @@ -57,13 +62,13 @@ extern const char _MsgFail []; -void Warning (const char* Format, ...); +void Warning (const char* Format, ...) attribute((format(printf,1,2))); /* Print a warning message */ -void Error (const char* Format, ...); +void Error (const char* Format, ...) attribute((format(printf,1,2))); /* Print an error message and die */ -void Internal (const char* Format, ...); +void Internal (const char* Format, ...) attribute((format(printf,1,2))); /* Print an internal error message and die */ #define CHECK(c) \