Commit b91099b9 authored by Jeremy Huddleston's avatar Jeremy Huddleston Committed by Mike Gabriel

Add _X_UNUSED attribute to designate unused variables and silence warnings

Signed-off-by: 's avatarJeremy Huddleston <jeremyhu@apple.com> Reviewed-by: 's avatarDaniel Stone <daniel@fooishbar.org> Backport to nx-libs: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
parent cef6d723
......@@ -97,4 +97,11 @@ in this Software without prior written authorization from The Open Group.
# define _X_DEPRECATED
#endif
/* requires xproto >= 7.0.22 */
#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)
#define _X_UNUSED __attribute__((__unused__))
#else
#define _X_UNUSED /* */
#endif
#endif /* _XFUNCPROTO_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment