From 30a139fe894f76ad256281b60a36c693bc561245 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 2 Jun 2004 18:11:43 +0000 Subject: Define the new UNUSED() macro for marking function parameters. --- Src/system.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Src') diff --git a/Src/system.h b/Src/system.h index f03d890c4..1c1de8da3 100644 --- a/Src/system.h +++ b/Src/system.h @@ -680,3 +680,10 @@ extern short ospeed; #else # define IS_DIRSEP(c) ((c) == '/') #endif + +#if defined(__GNUC__) && !defined(APPLE) +/* Does the OS X port of gcc still gag on __attribute__? */ +#define UNUSED(x) x __attribute__((__unused__)) +#else +#define UNUSED(x) x +#endif -- cgit 1.4.1