From: <sv...@op...> - 2024-08-13 14:27:47
|
Author: manx Date: Tue Aug 13 16:27:35 2024 New Revision: 21425 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21425 Log: Merged revision(s) 21421 from trunk/OpenMPT: [Ref] Silence MSVC static analyser brain-damage. ........ Modified: branches/OpenMPT-1.28/ (props changed) branches/OpenMPT-1.28/soundlib/Load_669.cpp Modified: branches/OpenMPT-1.28/soundlib/Load_669.cpp ============================================================================== --- branches/OpenMPT-1.28/soundlib/Load_669.cpp Tue Aug 13 16:27:09 2024 (r21424) +++ branches/OpenMPT-1.28/soundlib/Load_669.cpp Tue Aug 13 16:27:35 2024 (r21425) @@ -243,7 +243,15 @@ uint8 command = effect[chn] >> 4; if(command < static_cast<uint8>(CountOf(effTrans))) { +#if MPT_COMPILER_MSVC +#pragma warning(push) +// false-positive +#pragma warning(disable:6385) // Reading invalid data from 'effTrans'. +#endif m->command = effTrans[command]; +#if MPT_COMPILER_MSVC +#pragma warning(pop) +#endif } else { m->command = CMD_NONE; |