From 767a5b3c7314b6c6b14c8a9869d0019186d52619 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 14 Mar 2012 00:13:16 -0700 Subject: Mark the GlobalContext pointer as volatile --- Alc/ALc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 001ab4a6..4283a251 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -364,7 +364,7 @@ static ALCdevice *volatile DeviceList = NULL; // Thread-local current context static pthread_key_t LocalContext; // Process-wide current context -static ALCcontext *GlobalContext; +static ALCcontext *volatile GlobalContext = NULL; /* Device Error */ static volatile ALCenum g_eLastNullDeviceError = ALC_NO_ERROR; -- cgit v1.2.3