From 4298ce18fb33d5935231a83bcf1f60289eb6b09c Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 15 Nov 2020 03:58:54 +1100 Subject: Enable GCC implicit fallthrough warning. I've guessed whether break or [[fallthrough]] is appropriate. In cases where it looked particularly suspicious, I added a FIXME comment. All of these changes should be reviewed by someone familiar with the code. --- src/devices/machine/strata.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/devices/machine/strata.cpp') diff --git a/src/devices/machine/strata.cpp b/src/devices/machine/strata.cpp index df434adbd24..7976a16def9 100644 --- a/src/devices/machine/strata.cpp +++ b/src/devices/machine/strata.cpp @@ -500,6 +500,7 @@ void strataflash_device::write8_16(offs_t offset, uint16_t data, bus_width_t bus else m_wrbuf_base = offset; memset(m_wrbuf, 0xff, m_wrbuf_len); /* right??? */ + [[fallthrough]]; case FM_WRBUFPART3: if ((offset < m_wrbuf_base) || (offset >= (m_wrbuf_base + m_wrbuf_len))) m_status |= 0x30; -- cgit v1.2.3-70-g09d2