From 8f1533c8ccab1c1eca4b8ddc4c5b3a671e7e0193 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 27 Jul 2000 20:42:23 +0000 Subject: [PATCH] Use gcc attribs git-svn-id: svn://svn.cc65.org/cc65/trunk@212 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ar65/error.h | 11 ++++++++--- src/ar65/make/gcc.mak | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) 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 = -- 2.39.5