[Scummvm-git-logs] scummvm master -> d49a9870b792a582977c4d3b04ef5fd2748792c2
sev-
sev at scummvm.org
Thu Aug 27 13:03:55 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d49a9870b7 AUDIO: Silence MSVC warning
Commit: d49a9870b792a582977c4d3b04ef5fd2748792c2
https://github.com/scummvm/scummvm/commit/d49a9870b792a582977c4d3b04ef5fd2748792c2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-08-27T15:02:59+02:00
Commit Message:
AUDIO: Silence MSVC warning
Their code analysis does not catch the fact that we cover all possible
cases in the switch() statement, hence it produces the warning.
Changed paths:
audio/soundfont/vab/psxspu.h
diff --git a/audio/soundfont/vab/psxspu.h b/audio/soundfont/vab/psxspu.h
index 3b6efd5f01..812a135e90 100644
--- a/audio/soundfont/vab/psxspu.h
+++ b/audio/soundfont/vab/psxspu.h
@@ -245,6 +245,7 @@ void PSXConvADSR(T *realADSR, uint8 Am, uint8 Ar, uint8 Dr, uint8 Sl, uint8 Sm,
switch ((envelope_level >> 28) & 0x7) {
case 0:
+ default:
envelope_level_target = 0x00000000;
envelope_level_diff =
RateTable[RoundToZero((Sr ^ 0x7F) - 0x1B + 0) + 32];
More information about the Scummvm-git-logs
mailing list