From: cuz Date: Thu, 27 Jul 2000 20:42:23 +0000 (+0000) Subject: Use gcc attribs X-Git-Tag: V2.12.0~3306 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8f1533c8ccab1c1eca4b8ddc4c5b3a671e7e0193;p=cc65 Use gcc attribs git-svn-id: svn://svn.cc65.org/cc65/trunk@212 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ar65/error.h b/src/ar65/error.h index be36010f5..1f6823269 100644 --- a/src/ar65/error.h +++ b/src/ar65/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) \ diff --git a/src/ar65/make/gcc.mak b/src/ar65/make/gcc.mak index 1f99cb2a0..2333108c2 100644 --- a/src/ar65/make/gcc.mak +++ b/src/ar65/make/gcc.mak @@ -2,7 +2,7 @@ # gcc Makefile for ar65 # -CFLAGS = -g -O2 -Wall +CFLAGS = -g -O2 -Wall -I../common CC = gcc LDFLAGS =