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>
This commit is contained in:
parent
85eb90ea45
commit
aa73d587fe
|
@ -410,21 +410,21 @@ ResFindGCPixmaps(void *value, XID id, void *cdata)
|
||||||
*bytes += ResGetApproxPixmapBytes(pGC->tile.pixmap);
|
*bytes += ResGetApproxPixmapBytes(pGC->tile.pixmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef RENDER
|
||||||
static void
|
static void
|
||||||
ResFindPicturePixmaps(void *value, XID id, void *cdata)
|
ResFindPicturePixmaps(void *value, XID id, void *cdata)
|
||||||
{
|
{
|
||||||
#ifdef RENDER
|
|
||||||
ResFindResourcePixmaps(value, id, PictureType, cdata);
|
ResFindResourcePixmaps(value, id, PictureType, cdata);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef COMPOSITE
|
||||||
static void
|
static void
|
||||||
ResFindCompositeClientWindowPixmaps (void *value, XID id, void *cdata)
|
ResFindCompositeClientWindowPixmaps (void *value, XID id, void *cdata)
|
||||||
{
|
{
|
||||||
#ifdef COMPOSITE
|
|
||||||
ResFindResourcePixmaps(value, id, CompositeClientWindowType, cdata);
|
ResFindResourcePixmaps(value, id, CompositeClientWindowType, cdata);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcXResQueryClientPixmapBytes(ClientPtr client)
|
ProcXResQueryClientPixmapBytes(ClientPtr client)
|
||||||
|
|
Loading…
Reference in New Issue