mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +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:
committed by
Carlos R. Mafra
parent
ae9cb306ef
commit
177c5095e9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user