From: <sv...@op...> - 2024-04-13 22:24:12
|
Author: sagamusix Date: Sun Apr 14 00:24:00 2024 New Revision: 20586 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20586 Log: [Fix] Hopefully silence GCC error regarding constexpr Event constructor. Modified: trunk/OpenMPT/soundlib/InstrumentSynth.h Modified: trunk/OpenMPT/soundlib/InstrumentSynth.h ============================================================================== --- trunk/OpenMPT/soundlib/InstrumentSynth.h Sun Apr 14 00:20:13 2024 (r20585) +++ trunk/OpenMPT/soundlib/InstrumentSynth.h Sun Apr 14 00:24:00 2024 (r20586) @@ -75,9 +75,9 @@ }; union { - uint16 u16 = 0; + uint16 u16; int16 i16; - std::array<uint8, 2> bytes; + std::array<uint8, 2> bytes = {{}}; }; static constexpr Event StopScript() noexcept { return Event{Type::StopScript}; } |