Skip to content

fix nagging in emscripten#34

Open
Moros1138 wants to merge 1 commit intodevelopfrom
fix-the-nagging-emscripten
Open

fix nagging in emscripten#34
Moros1138 wants to merge 1 commit intodevelopfrom
fix-the-nagging-emscripten

Conversation

@Moros1138
Copy link
Collaborator

In file included from /home/jon/Projects/olcSoundWaveEngine/demos/Test_004_PGE_RawDataPlayback.cpp:2:
/home/jon/Projects/olcSoundWaveEngine/demos/olcPixelGameEngine.h:4123:13: warning: enumeration value 'MODEL3D' not handled in switch [-Wswitch]
                                switch (mode)
                                        ^~~~
In file included from /home/jon/Projects/olcSoundWaveEngine/demos/Test_004_PGE_RawDataPlayback.cpp:5:
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1352:51: warning: operator '?:' has lower precedence than '*'; '*' will be evaluated first [-Wparentheses]
                                output = amplitude.value * (phase_acc >= 1.0) ? 1.0 : -1.0;
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1352:51: note: place parentheses around the '*' expression to silence this warning
                                output = amplitude.value * (phase_acc >= 1.0) ? 1.0 : -1.0;
                                                                              ^
                                         (                                   )
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1352:51: note: place parentheses around the '?:' expression to evaluate it first
                                output = amplitude.value * (phase_acc >= 1.0) ? 1.0 : -1.0;
                                                                              ^
                                                           (                              )
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1356:50: warning: operator '?:' has lower precedence than '*'; '*' will be evaluated first [-Wparentheses]
                                output = amplitude.value * (phase_acc < 1.0) ? (phase_acc * 0.5) : (1.0 - phase_acc * 0.5);
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1356:50: note: place parentheses around the '*' expression to silence this warning
                                output = amplitude.value * (phase_acc < 1.0) ? (phase_acc * 0.5) : (1.0 - phase_acc * 0.5);
                                                                             ^
                                         (                                  )
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1356:50: note: place parentheses around the '?:' expression to evaluate it first
                                output = amplitude.value * (phase_acc < 1.0) ? (phase_acc * 0.5) : (1.0 - phase_acc * 0.5);
                                                                             ^
                                                           (                                                              )
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1360:71: warning: operator '?:' has lower precedence than '*'; '*' will be evaluated first [-Wparentheses]
                                output = amplitude.value * (phase_acc >= (parameter.value + 1.0)) ? 1.0 : -1.0;
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1360:71: note: place parentheses around the '*' expression to silence this warning
                                output = amplitude.value * (phase_acc >= (parameter.value + 1.0)) ? 1.0 : -1.0;
                                                                                                  ^
                                         (                                                       )
/home/jon/Projects/olcSoundWaveEngine/demos/../olcSoundWaveEngine.h:1360:71: note: place parentheses around the '?:' expression to evaluate it first
                                output = amplitude.value * (phase_acc >= (parameter.value + 1.0)) ? 1.0 : -1.0;
                                                                                                  ^
                                                           (                                                  )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant