298fcb52ef
For some reason clang is breaking the code when openal-soft is built with optimizations. If the file alBuffer.c is built with -O1 the problem don't happens. See https://github.com/kcat/openal-soft/issues/18 The problem seems to happen just on CURRENT due the clang version. PR: 199488, 203818 Tested by: ohartman@zedat.fu-berlin.de Approved by: mva MFH: 2015Q4
11 lines
338 B
C
11 lines
338 B
C
--- OpenAL32/alBuffer.c.orig 2015-09-21 20:22:13 UTC
|
|
+++ OpenAL32/alBuffer.c
|
|
@@ -1179,7 +1179,7 @@ static ALboolean DecomposeFormat(ALenum
|
|
{ AL_7POINT1_16_SOFT, FmtX71, FmtShort },
|
|
{ AL_7POINT1_32F_SOFT, FmtX71, FmtFloat },
|
|
};
|
|
- ALuint i;
|
|
+ volatile ALuint i;
|
|
|
|
for(i = 0;i < COUNTOF(list);i++)
|
|
{
|