From b1ca87a565033a767042120288b2c45723cf79cc Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Tue, 21 Oct 2003 21:49:23 +0000 Subject: prevent from optimizing out by some compilers (from XFree86 CVS) --- src/mesa/drivers/x11/xm_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/x11') diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index 6ebda0c14f..2ad5a156ff 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -175,7 +175,7 @@ static int host_byte_order( void ) * Error handling. */ #ifndef XFree86Server -static int mesaXErrorFlag = 0; +static volatile int mesaXErrorFlag = 0; static int mesaHandleXError( XMesaDisplay *dpy, XErrorEvent *event ) { -- cgit v1.2.3