From 7fbec6dbb6e061fe5b8c592dd602cf4b4c65155a Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 14 Jan 2013 15:37:02 +0100 Subject: Synchronised files --- X11/Xlib.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'X11/Xlib.h') diff --git a/X11/Xlib.h b/X11/Xlib.h index 3a73d7b83..112b85a94 100644 --- a/X11/Xlib.h +++ b/X11/Xlib.h @@ -81,6 +81,14 @@ _Xmblen( November 2000. Its presence is indicated through the following macro. */ #define X_HAVE_UTF8_STRING 1 +/* The Xlib structs are full of implicit padding to properly align members. + We can't clean that up without breaking ABI, so tell clang not to bother + complaining about it. */ +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wpadded" +#endif + typedef char *XPointer; typedef int Bool; @@ -4019,6 +4027,10 @@ extern void XFreeEventData( XGenericEventCookie* /* cookie*/ ); +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + _XFUNCPROTOEND #endif /* _X11_XLIB_H_ */ -- cgit v1.2.3