Add UNUSED macro that expands to a parameter attribute annotation on
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 2bfe250..449ce09 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -609,3 +609,9 @@ inet_ntop(int af, const void *src, char *dst, size_t size);
 #ifndef HAVE_INET_PTON
 int isc_net_pton(int af, const char *src, void *dst);
 #endif
+
+#ifdef __GNUC__
+#  define UNUSED(x) x __attribute__((__unused__))
+#else
+#  define UNUSED(x) x
+#endif /* ndef __GNUC__ */