From 80a17eb5966a2b2c1dff3206621a338b45cbdf7d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 18 Sep 2008 13:09:51 +0000 Subject: Clean up some compile warnings. --- src/includes/rc-misc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/includes/rc-misc.h') diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 91e15895..12154b95 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -52,12 +52,16 @@ #define ERRX fprintf (stderr, "out of memory\n"); exit (1) +#define UNCONST(a) ((void *)(unsigned long)(const void *)(a)) + #ifdef lint # define _unused #endif #if __GNUC__ > 2 || defined(__INTEL_COMPILER) +# define _dead __attribute__((__noreturn__)) # define _unused __attribute__((__unused__)) #else +# define _dead # define _unused #endif -- cgit v1.2.3