From 58b04cdfa42d09a5618c14317a03c8979b65d774 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 29 Jun 2022 19:08:41 -0400 Subject: [PATCH 1/3] Switch to an alternative form of avoiding unused goto warnings. --- Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index 83c1db06a..5d09bdfef 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -224,7 +224,9 @@ void Processor Date: Wed, 29 Jun 2022 19:20:44 -0400 Subject: [PATCH 2/3] Try a compiler-specific attribute. --- .../68000Mk2/Implementation/68000Mk2Implementation.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index 5d09bdfef..f2f7c02f0 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -223,10 +223,14 @@ void Processor Date: Wed, 29 Jun 2022 21:13:00 -0400 Subject: [PATCH 3/3] Just disable the diagnostic. --- .../Implementation/68000Mk2Implementation.hpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index f2f7c02f0..41ab1b05d 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -200,6 +200,11 @@ template Microcycle::OperationT data_select(const Instru // MARK: - The state machine. +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-label" +#endif + template void Processor::run_for(HalfCycles duration) { // Accumulate the newly paid-in cycles. If this instance remains in deficit, exit. @@ -223,14 +228,8 @@ void Processor