diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2015-10-14 15:13:38 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-10-19 11:49:54 -0400 |
commit | aa73d587fece225753d8e6b8773a9c8b85823bd9 (patch) | |
tree | c8665db728a85df71afe94fdd35cd2d68623e6ea /Xext/xres.c | |
parent | 85eb90ea45e89033b97bf71a13c5c70fec8f6871 (diff) |
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 <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'Xext/xres.c')
-rw-r--r-- | Xext/xres.c | 8 |
1 files 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) |