diff --git a/test/testatomic.c b/test/testatomic.c index c034bd6de..98a6a7824 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -278,7 +278,7 @@ typedef struct char cache_pad4[CACHELINE-sizeof(SDL_SpinLock)-2*sizeof(SDL_atomic_t)]; #endif - SDL_bool active; + volatile SDL_bool active; /* Only needed for the mutex test */ SDL_mutex *mutex;