summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/zeus2.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-11-15 03:58:54 +1100
committer Vas Crabb <vas@vastheman.com>2020-11-15 03:58:54 +1100
commit4298ce18fb33d5935231a83bcf1f60289eb6b09c (patch)
tree6468a077c367eb806dcd91a69d33954e77e65f14 /src/devices/video/zeus2.cpp
parentf191d038ec1fa110e06374ff79e345c91b3365d7 (diff)
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.
Diffstat (limited to 'src/devices/video/zeus2.cpp')
-rw-r--r--src/devices/video/zeus2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/video/zeus2.cpp b/src/devices/video/zeus2.cpp
index f57b3f53dda..b6626ce933a 100644
--- a/src/devices/video/zeus2.cpp
+++ b/src/devices/video/zeus2.cpp
@@ -1222,7 +1222,7 @@ bool zeus2_device::zeus2_fifo_process(const uint32_t *data, int numwords)
return false;
zeus_trans[3] = convert_float(data[1]);
dataoffs = 1;
-
+ [[fallthrough]];
/* 0x07: set matrix and point (crusnexo) */
case 0x07:
if (numwords < 13)
@@ -1294,6 +1294,7 @@ bool zeus2_device::zeus2_fifo_process(const uint32_t *data, int numwords)
}
break;
}
+ [[fallthrough]];
// 0x1b: thegrid
// 0x1c: crusnexo (4 words)
case 0x1b:
@@ -1471,6 +1472,7 @@ void zeus2_device::zeus2_draw_model(uint32_t baseaddr, uint16_t count, int logit
case 0x00: // crusnexo
if (logit && curoffs == count)
logerror(" end cmd 00\n");
+ [[fallthrough]];
case 0x21: /* thegrid */
case 0x22: /* crusnexo */
// Sets 0x68 (uv float offset) and texture line and mode