mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-12 00:30:31 +00:00
Just disable the diagnostic.
This commit is contained in:
parent
c133f80c73
commit
b1d8a45339
@ -200,6 +200,11 @@ template <typename InstructionT> Microcycle::OperationT data_select(const Instru
|
||||
|
||||
// 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>
|
||||
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.
|
||||
@ -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.
|
||||
#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.
|
||||
#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,
|
||||
// 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);
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user