$OpenBSD: patch-OpenAL32_alBuffer_c,v 1.2 2017/11/15 13:02:42 sthen Exp $
Index: OpenAL32/alBuffer.c
--- OpenAL32/alBuffer.c.orig
+++ OpenAL32/alBuffer.c
@@ -1209,7 +1209,7 @@ static ALboolean DecomposeFormat(ALenum format, enum F
         { AL_FORMAT_BFORMAT3D_16,      FmtBFormat3D, FmtShort },
         { AL_FORMAT_BFORMAT3D_FLOAT32, FmtBFormat3D, FmtFloat },
     };
-    ALuint i;
+    volatile ALuint i;
 
     for(i = 0;i < COUNTOF(list);i++)
     {
