[PATCH 3/5] os: Silence warnings when building with clang
Jamey Sharp
jamey at minilop.net
Sun Apr 24 13:09:10 PDT 2011
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.
Jamey
More information about the xorg-devel
mailing list