From b4bff9ce5efce83a7265a42d4372d367ca32f696 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 22 Jan 2008 10:29:15 +0000 Subject: Quiet some lint warnings. --- src/includes/rc-misc.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/includes/rc-misc.h') diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 62d35c46..e034c1e5 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -65,8 +65,11 @@ #define RC_PLUGINDIR RC_LIBDIR "/plugins" -#define ERRX fprintf (stderr, "out of memory\n"); exit (1) +#define ERRX fprintf (stderr, "out of memory\n"); exit (1) +#ifdef lint +# define _unused +#endif #if __GNUC__ > 2 || defined(__INTEL_COMPILER) # define _unused __attribute__((__unused__)) #endif @@ -79,6 +82,7 @@ _unused static void *xmalloc (size_t size) return (value); ERRX; + /* NOTREACHED */ } _unused static void *xrealloc (void *ptr, size_t size) @@ -89,6 +93,7 @@ _unused static void *xrealloc (void *ptr, size_t size) return (value); ERRX; + /* NOTREACHED */ } _unused static char *xstrdup (const char *str) @@ -104,6 +109,7 @@ _unused static char *xstrdup (const char *str) return (value); ERRX; + /* NOTREACHED */ } #undef ERRX -- cgit v1.2.3