Skip to content

Undefined behaviour under agressive compiler optimizations. #3

@stolk

Description

@stolk

The compiler warns about this, it seems like a real issue:

[armeabi-v7a] Compile thumb : openal <= mixer.c
/home/bram/src/openal-soft/jni/OpenAL/Alc/mixer.c: In function 'Mix_ALfp_6_point32':
/home/bram/src/openal-soft/jni/OpenAL/Alc/mixer.c:226:55: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]
DrySend[i][c] = Source->Params.DryGains[i][c];
^
/home/bram/src/openal-soft/jni/OpenAL/Alc/mixer.c:359:1: note: in expansion of macro 'DECL_TEMPLATE'
DECL_TEMPLATE(ALfp, 6, point32)
^
/home/bram/src/openal-soft/jni/OpenAL/Alc/mixer.c:223:5: note: containing loop
for(i = 0;i < Channels;i++)
^
/home/bram/src/openal-soft/jni/OpenAL/Alc/mixer.c:359:1: note: in expansion of macro 'DECL_TEMPLATE'
DECL_TEMPLATE(ALfp, 6, point32)
^
/home/bram/src/openal-soft/jni/OpenAL/Alc/mixer.c: In function 'Mix_ALfp_6_lerp32':
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions