From 5164513fdfcea4546ffcda182c09a3ad11e73629 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 25 Jan 2024 19:36:01 -0500 Subject: [PATCH] kill an ymfm warning possible compiler false-positive but it was hindering Windows build --- src/engine/platform/sound/ymfm/ymfm_fm.h | 2 +- src/engine/platform/sound/ymfm/ymfm_fm.ipp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/sound/ymfm/ymfm_fm.h b/src/engine/platform/sound/ymfm/ymfm_fm.h index 3ac36b50d..f77e89434 100644 --- a/src/engine/platform/sound/ymfm/ymfm_fm.h +++ b/src/engine/platform/sound/ymfm/ymfm_fm.h @@ -459,7 +459,7 @@ protected: uint8_t m_clock_prescale; // prescale factor (2/3/6) uint8_t m_irq_mask; // mask of which bits signal IRQs uint8_t m_irq_state; // current IRQ state - uint8_t m_timer_running[2]; // current timer running state + uint8_t m_timer_running[4]; // current timer running state uint8_t m_total_clocks; // low 8 bits of the total number of clocks processed uint32_t m_active_channels; // mask of active channels (computed by prepare) uint32_t m_modified_channels; // mask of channels that have been modified diff --git a/src/engine/platform/sound/ymfm/ymfm_fm.ipp b/src/engine/platform/sound/ymfm/ymfm_fm.ipp index 7a37ec8a3..a18eafdfb 100644 --- a/src/engine/platform/sound/ymfm/ymfm_fm.ipp +++ b/src/engine/platform/sound/ymfm/ymfm_fm.ipp @@ -1198,7 +1198,7 @@ fm_engine_base::fm_engine_base(ymfm_interface &intf) : m_clock_prescale(RegisterType::DEFAULT_PRESCALE), m_irq_mask(STATUS_TIMERA | STATUS_TIMERB), m_irq_state(0), - m_timer_running{0,0}, + m_timer_running{0,0,0,0}, m_total_clocks(0), m_active_channels(ALL_CHANNELS), m_modified_channels(ALL_CHANNELS),