mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-06 02:18:00 +02:00
Tell clang not to report -Wpadded warnings on public headers we can't fix
Better to silence the compiler warning than break ABI. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
f7022f5775
commit
a404bec53f
1 changed files with 14 additions and 0 deletions
14
XKBstr.h
14
XKBstr.h
|
|
@ -37,6 +37,16 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
(int)(((h)<<8)|(l)&0x7fff))
|
||||
#else
|
||||
#define Xkb2CharsToInt(h,l) ((short)(((h)<<8)|(l)))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The Xkb 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
|
||||
|
||||
/*
|
||||
|
|
@ -610,4 +620,8 @@ typedef struct _XkbDeviceChanges {
|
|||
XkbDeviceLedChangesRec leds;
|
||||
} XkbDeviceChangesRec,*XkbDeviceChangesPtr;
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif /* _XKBSTR_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue