diff options
Diffstat (limited to 'libX11/include/X11/Xlibint.h')
-rw-r--r-- | libX11/include/X11/Xlibint.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libX11/include/X11/Xlibint.h b/libX11/include/X11/Xlibint.h index 84abd7319..03856a671 100644 --- a/libX11/include/X11/Xlibint.h +++ b/libX11/include/X11/Xlibint.h @@ -42,6 +42,14 @@ from The Open Group. #include <X11/Xproto.h> /* to declare xEvent */ #include <X11/XlibConf.h> /* for configured options like XTHREADS */ +/* 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 + #ifdef WIN32 #define _XFlush _XFlushIt #endif @@ -1367,6 +1375,10 @@ extern void xlocaledir( int buf_len ); +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + _XFUNCPROTOEND #endif /* _X11_XLIBINT_H_ */ |