mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-13 00:25:26 +00:00
Just disable the diagnostic.
This commit is contained in:
@@ -200,6 +200,11 @@ template <typename InstructionT> Microcycle::OperationT data_select(const Instru
|
|||||||
|
|
||||||
// MARK: - The state machine.
|
// MARK: - The state machine.
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class BusHandler, bool dtack_is_implicit, bool permit_overrun, bool signal_will_perform>
|
template <class BusHandler, bool dtack_is_implicit, bool permit_overrun, bool signal_will_perform>
|
||||||
void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perform>::run_for(HalfCycles duration) {
|
void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perform>::run_for(HalfCycles duration) {
|
||||||
// Accumulate the newly paid-in cycles. If this instance remains in deficit, exit.
|
// Accumulate the newly paid-in cycles. If this instance remains in deficit, exit.
|
||||||
@@ -223,14 +228,8 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
|||||||
// Moves to state x by dynamic dispatch; x can be a regular variable.
|
// Moves to state x by dynamic dispatch; x can be a regular variable.
|
||||||
#define MoveToStateDynamic(x) { state_ = x; continue; }
|
#define MoveToStateDynamic(x) { state_ = x; continue; }
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#define MAYBE_UNUSED __attribute__ ((unused))
|
|
||||||
#else
|
|
||||||
#define MAYBE_UNUSED /* */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Sets the start position for state x.
|
// Sets the start position for state x.
|
||||||
#define BeginState(x) case ExecutionState::x: MAYBE_UNUSED x
|
#define BeginState(x) case ExecutionState::x: x
|
||||||
|
|
||||||
// Sets the start position for the addressing mode y within state x,
|
// Sets the start position for the addressing mode y within state x,
|
||||||
// where x was declared as an AddressingDispatch.
|
// where x was declared as an AddressingDispatch.
|
||||||
@@ -3079,6 +3078,10 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
|||||||
time_remaining_ = HalfCycles(0);
|
time_remaining_ = HalfCycles(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user