aboutsummaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-18 13:09:51 +0000
committerRoy Marples <roy@marples.name>2008-09-18 13:09:51 +0000
commit80a17eb5966a2b2c1dff3206621a338b45cbdf7d (patch)
tree859cff777b1282d1fb912782d77bbe5bdb443ce1 /src/includes
parent39304745d4eb49460d2aab307b85a8ff218bfc45 (diff)
Clean up some compile warnings.
Diffstat (limited to 'src/includes')
-rw-r--r--src/includes/rc-misc.h4
1 files changed, 4 insertions, 0 deletions
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