diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-03-02 10:43:45 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-03-02 10:43:45 -0800 |
commit | a404bec53f6fff71fc7d47f41eca2ef488d16937 (patch) | |
tree | 874e996c15052949ab845029373084f319da3b94 /XKBstr.h | |
parent | f7022f5775350dce3348b7151845a32390e98791 (diff) |
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>
Diffstat (limited to 'XKBstr.h')
-rw-r--r-- | XKBstr.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -39,6 +39,16 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. #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 + /* * Common data structures and access macros */ @@ -610,4 +620,8 @@ typedef struct _XkbDeviceChanges { XkbDeviceLedChangesRec leds; } XkbDeviceChangesRec,*XkbDeviceChangesPtr; +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + #endif /* _XKBSTR_H_ */ |