1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

WRaster: fix unused variable warning when XShm extention is not enabled

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2015-06-13 18:54:05 +02:00
committed by Carlos R. Mafra
parent ae9cb306ef
commit 177c5095e9

View File

@@ -154,6 +154,9 @@ RXImage *RCreateXImage(RContext * context, int depth, unsigned width, unsigned h
void RDestroyXImage(RContext * context, RXImage * rximage) void RDestroyXImage(RContext * context, RXImage * rximage)
{ {
#ifndef USE_XSHM #ifndef USE_XSHM
/* Argument is not used in this case, tell the compiler it is ok */
(void) context;
XDestroyImage(rximage->image); XDestroyImage(rximage->image);
#else /* USE_XSHM */ #else /* USE_XSHM */
if (rximage->is_shared) { if (rximage->is_shared) {