summaryrefslogtreecommitdiff
path: root/Xtransint.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-25 10:57:00 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-01 08:55:42 -0700
commita74c5d915c3095059356f83d1b845192e5c472c2 (patch)
treeb855d809ba6e6459a6a9581aea3e4d2d36be5c54 /Xtransint.h
parent64f765de138cb9b757df315469b3136d32222ea2 (diff)
Add _X_UNUSED attributes to silence unused parameter warnings
Not all the transport variants use all the arguments to every function, but as long as one transport type needs it, they all get the args passed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'Xtransint.h')
-rw-r--r--Xtransint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xtransint.h b/Xtransint.h
index bfd79d6..1052777 100644
--- a/Xtransint.h
+++ b/Xtransint.h
@@ -78,6 +78,10 @@ from The Open Group.
#include "Xtrans.h"
+#ifndef _X_UNUSED /* Defined in Xfuncproto.h in xproto >= 7.0.22 */
+# define _X_UNUSED /* */
+#endif
+
#ifdef XTRANSDEBUG
# include <stdio.h>
#endif /* XTRANSDEBUG */