From 177c5095e9c6c62a4d771ae5612d2dbad9982e35 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 13 Jun 2015 18:54:05 +0200 Subject: [PATCH] WRaster: fix unused variable warning when XShm extention is not enabled Signed-off-by: Christophe CURIS --- wrlib/xutil.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrlib/xutil.c b/wrlib/xutil.c index 1c3f86dc..8e90333a 100644 --- a/wrlib/xutil.c +++ b/wrlib/xutil.c @@ -154,6 +154,9 @@ RXImage *RCreateXImage(RContext * context, int depth, unsigned width, unsigned h void RDestroyXImage(RContext * context, RXImage * rximage) { #ifndef USE_XSHM + /* Argument is not used in this case, tell the compiler it is ok */ + (void) context; + XDestroyImage(rximage->image); #else /* USE_XSHM */ if (rximage->is_shared) {