summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pool <mbp@sourcefrog.net>2014-04-22 21:49:35 +1000
committerMartin Pool <mbp@sourcefrog.net>2014-04-22 21:49:35 +1000
commitc6882fd26dc8a9ed65986f834b7a330d1089e46f (patch)
treeb7790807679990c92b1642cde4bcc7c99925020f
parent334fd53cde9c5f2f0be5ec249e66a0a794e39358 (diff)
downloadlibrsync-c6882fd26dc8a9ed65986f834b7a330d1089e46f.tar.gz
Fix cpp warning about LCLINT and also handle SPLINT
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index 2793256..bd71e20 100644
--- a/util.h
+++ b/util.h
@@ -37,7 +37,7 @@ void rs_bzero(void *buf, size_t size);
#ifdef __GNUC__
# define UNUSED(x) x __attribute__((unused))
-#elif __LCLINT__
+#elif defined(__LCLINT__) || defined(S_SPLINT_S)
# define UNUSED(x) /*@unused@*/ x
#else /* !__GNUC__ && !__LCLINT__ */
# define UNUSED(x) x