prevent from optimizing out by some compilers (from XFree86 CVS)
authorAlan Hourihane <alanh@tungstengraphics.com>
Tue, 21 Oct 2003 21:49:23 +0000 (21:49 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Tue, 21 Oct 2003 21:49:23 +0000 (21:49 +0000)
src/mesa/drivers/x11/xm_api.c

index 6ebda0c14f86018d983e7d8040087a48a140c54c..2ad5a156ff5be7c7b7c23be8166e1b149eca29e8 100644 (file)
@@ -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 )
 {