aboutsummaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-22 10:29:15 +0000
committerRoy Marples <roy@marples.name>2008-01-22 10:29:15 +0000
commitb4bff9ce5efce83a7265a42d4372d367ca32f696 (patch)
tree5b15b4a0a8d270365e1032c969febbbe34be5a26 /src/includes
parente5baa6ad378a6cf7ddc7689163adfd8719d9946f (diff)
Quiet some lint warnings.
Diffstat (limited to 'src/includes')
-rw-r--r--src/includes/rc-misc.h8
1 files changed, 7 insertions, 1 deletions
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