summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/i86/i286.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/cpu/i86/i286.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/cpu/i86/i286.cpp')
-rw-r--r--src/devices/cpu/i86/i286.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/cpu/i86/i286.cpp b/src/devices/cpu/i86/i286.cpp
index c307e23901b..dfa37f022f8 100644
--- a/src/devices/cpu/i86/i286.cpp
+++ b/src/devices/cpu/i86/i286.cpp
@@ -850,6 +850,7 @@ void i80286_cpu_device::code_descriptor(uint16_t selector, uint16_t offset, int
if (SEGDESC(r) || (GATE(r) != TSSDESCIDLE))
throw TRAP(FAULT_GP,IDXTBL(selector));
+ [[fallthrough]];
case TSSDESCIDLE:
switch_task(selector, gate);
load_flags(CompressFlags(), CPL);
@@ -1888,7 +1889,7 @@ reg.base = BASE(desc); (void)(r); reg.limit = LIMIT(desc); }
break;
}
}
-
+ [[fallthrough]];
default:
if(!common_op(op))
{