From aa73d587fece225753d8e6b8773a9c8b85823bd9 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 14 Oct 2015 15:13:38 -0700 Subject: [PATCH] xres: Silence -Wunused-function warnings when building !COMPOSITE or !RENDER 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 Reviewed-by: Alan Coopersmith --- Xext/xres.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Xext/xres.c b/Xext/xres.c index 6b87c3ddc..83cc6913a 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)