[PATCH 4/4] WRaster: fix unused variable warning when XShm extention is not enabled
Christophe CURIS <[email protected]>
| Newsgroups | gmane.compw.window-managers.windowmaker.devel |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Christophe CURIS <[email protected]> --- wrlib/xutil.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrlib/xutil.c b/wrlib/xutil.c index 1c3f86d..8e90333 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) { -- 2.1.4 -- To unsubscribe, send mail to [email protected].