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 authored and Carlos R. Mafra committed 2015-06-13 11:03:59 -06:00
1 parent ae9cb306ef
commit 177c5095e9
1 file changed
+3
+3
View File
@@ -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) {