[PATCH 3/5] os: Silence warnings when building with clang
Jeremy Huddleston
jeremyhu at apple.com
Sun Apr 24 18:40:01 PDT 2011
On Apr 24, 2011, at 13:09, Jamey Sharp wrote:
> On 4/23/11, Jeremy Huddleston <jeremyhu at apple.com> wrote:
>> +#ifdef __clang__
>> +#pragma clang diagnostic push
>> +#pragma clang diagnostic ignored "-Wunused-function"
>> +#endif
>> +
>> #include <X11/Xtrans/Xtrans.h>
>> #include <X11/Xtrans/Xtransint.h>
>> +
>> +#ifdef __clang__
>> +#pragma clang diagnostic pop
>> +#endif
>
> What would you say to putting xtrans warning suppressions in xtrans
> itself? Presumably no user calls all of the functions in xtrans, and
> similarly for other warnings.
Yeah... probably a good idea... I was just die a little every time I look at xtrans... I'll do that instead...
--Jeremy
More information about the xorg-devel
mailing list