[PATCH xquartz 05/10] xres: Silence -Wunused-function warnings when building !COMPOSITE or !RENDER

Alan Coopersmith alan.coopersmith at oracle.com
Wed Oct 14 15:34:37 PDT 2015


On 10/14/15 03:13 PM, Jeremy Huddleston Sequoia wrote:
> xres.c:422:1: warning: unused function 'ResFindCompositeClientWindowPixmaps' [-Wunused-function,Unused Entity Issue]
> ResFindCompositeClientWindowPixmaps (void *value, XID id, void *cdata)
> ^
>
> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
> ---
>   Xext/xres.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Xext/xres.c b/Xext/xres.c
> index 6b87c3d..83cc691 100644
> --- a/Xext/xres.c
> +++ b/Xext/xres.c
> @@ -410,21 +410,21 @@ ResFindGCPixmaps(void *value, XID id, void *cdata)
>           *bytes += ResGetApproxPixmapBytes(pGC->tile.pixmap);
>   }
>
> +#ifdef RENDER
>   static void
>   ResFindPicturePixmaps(void *value, XID id, void *cdata)
>   {
> -#ifdef RENDER
>       ResFindResourcePixmaps(value, id, PictureType, cdata);
> -#endif
>   }
> +#endif
>
> +#ifdef COMPOSITE
>   static void
>   ResFindCompositeClientWindowPixmaps (void *value, XID id, void *cdata)
>   {
> -#ifdef COMPOSITE
>       ResFindResourcePixmaps(value, id, CompositeClientWindowType, cdata);
> -#endif
>   }
> +#endif
>
>   static int
>   ProcXResQueryClientPixmapBytes(ClientPtr client)
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list