mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Apply maybe_unused judiciously.
This commit is contained in:
parent
9342c6005f
commit
a1a7c0e253
@ -15,7 +15,7 @@ namespace TI::TMS {
|
|||||||
|
|
||||||
template <Personality personality>
|
template <Personality personality>
|
||||||
template <SpriteMode mode, bool double_width>
|
template <SpriteMode mode, bool double_width>
|
||||||
void Base<personality>::draw_sprites(uint8_t y, int start, int end, const std::array<uint32_t, 16> &palette, int *colour_buffer) {
|
void Base<personality>::draw_sprites([[maybe_unused]] uint8_t y, int start, int end, const std::array<uint32_t, 16> &palette, int *colour_buffer) {
|
||||||
if(!draw_line_buffer_->sprites) {
|
if(!draw_line_buffer_->sprites) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -346,7 +346,7 @@ void Base<personality>::draw_tms_text(int start, int end) {
|
|||||||
// MARK: - Master System
|
// MARK: - Master System
|
||||||
|
|
||||||
template <Personality personality>
|
template <Personality personality>
|
||||||
void Base<personality>::draw_sms(int start, int end, uint32_t cram_dot) {
|
void Base<personality>::draw_sms([[maybe_unused]] int start, [[maybe_unused]] int end, [[maybe_unused]] uint32_t cram_dot) {
|
||||||
if constexpr (is_sega_vdp(personality)) {
|
if constexpr (is_sega_vdp(personality)) {
|
||||||
int colour_buffer[256];
|
int colour_buffer[256];
|
||||||
auto &line_buffer = *draw_line_buffer_;
|
auto &line_buffer = *draw_line_buffer_;
|
||||||
@ -451,7 +451,7 @@ void Base<personality>::draw_sms(int start, int end, uint32_t cram_dot) {
|
|||||||
template <Personality personality>
|
template <Personality personality>
|
||||||
template <ScreenMode mode>
|
template <ScreenMode mode>
|
||||||
void Base<personality>::draw_yamaha(uint8_t y, int start, int end) {
|
void Base<personality>::draw_yamaha(uint8_t y, int start, int end) {
|
||||||
const auto active_palette = palette();
|
[[maybe_unused]] const auto active_palette = palette();
|
||||||
const int sprite_start = start >> 2;
|
const int sprite_start = start >> 2;
|
||||||
const int sprite_end = end >> 2;
|
const int sprite_end = end >> 2;
|
||||||
auto &line_buffer = *draw_line_buffer_;
|
auto &line_buffer = *draw_line_buffer_;
|
||||||
|
@ -588,7 +588,7 @@ struct SMSSequencer {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <Personality personality>
|
template <Personality personality>
|
||||||
template<bool use_end> void Base<personality>::fetch_sms(uint8_t y, int start, int end) {
|
template<bool use_end> void Base<personality>::fetch_sms([[maybe_unused]] uint8_t y, [[maybe_unused]] int start, [[maybe_unused]] int end) {
|
||||||
if constexpr (is_sega_vdp(personality)) {
|
if constexpr (is_sega_vdp(personality)) {
|
||||||
SMSSequencer<personality> sequencer(this, y);
|
SMSSequencer<personality> sequencer(this, y);
|
||||||
dispatch<use_end>(sequencer, start, end);
|
dispatch<use_end>(sequencer, start, end);
|
||||||
|
@ -129,7 +129,7 @@ bool Line<include_clock>::read() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <bool include_clock>
|
template <bool include_clock>
|
||||||
void Line<include_clock>::set_read_delegate(ReadDelegate *delegate, Storage::Time bit_length) {
|
void Line<include_clock>::set_read_delegate(ReadDelegate *delegate, [[maybe_unused]] Storage::Time bit_length) {
|
||||||
read_delegate_ = delegate;
|
read_delegate_ = delegate;
|
||||||
if constexpr (!include_clock) {
|
if constexpr (!include_clock) {
|
||||||
assert(bit_length > Storage::Time(0));
|
assert(bit_length > Storage::Time(0));
|
||||||
|
@ -228,7 +228,7 @@ class ConcreteMachine:
|
|||||||
uint8_t character_generator = 1; /* 0 = Japan, 1 = USA, etc, 2 = USSR */
|
uint8_t character_generator = 1; /* 0 = Japan, 1 = USA, etc, 2 = USSR */
|
||||||
uint8_t date_format = 1; /* 0 = Y/M/D, 1 = M/D/Y, 2 = D/M/Y */
|
uint8_t date_format = 1; /* 0 = Y/M/D, 1 = M/D/Y, 2 = D/M/Y */
|
||||||
uint8_t keyboard = 1; /* 0 = Japan, 1 = USA, 2 = France, 3 = UK, 4 = Germany, 5 = USSR, 6 = Spain */
|
uint8_t keyboard = 1; /* 0 = Japan, 1 = USA, 2 = France, 3 = UK, 4 = Germany, 5 = USSR, 6 = Spain */
|
||||||
ROM::Name regional_bios_name;
|
[[maybe_unused]] ROM::Name regional_bios_name;
|
||||||
|
|
||||||
switch(target.region) {
|
switch(target.region) {
|
||||||
default:
|
default:
|
||||||
|
@ -523,7 +523,7 @@ template<Model model> class ConcreteMachine:
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PartialMachineCycle::Input: {
|
case PartialMachineCycle::Input: {
|
||||||
bool did_match = false;
|
[[maybe_unused]] bool did_match = false;
|
||||||
*cycle.value = 0xff;
|
*cycle.value = 0xff;
|
||||||
|
|
||||||
if(!(address&32)) {
|
if(!(address&32)) {
|
||||||
|
@ -727,7 +727,6 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
|||||||
|
|
||||||
switch(instruction_.operation) {
|
switch(instruction_.operation) {
|
||||||
case InstructionSet::M68k::Operation::Undefined:
|
case InstructionSet::M68k::Operation::Undefined:
|
||||||
if(instruction_.operation == InstructionSet::M68k::Operation::Undefined) {
|
|
||||||
switch(opcode_ & 0xf000) {
|
switch(opcode_ & 0xf000) {
|
||||||
default:
|
default:
|
||||||
exception_vector_ = InstructionSet::M68k::Exception::IllegalInstruction;
|
exception_vector_ = InstructionSet::M68k::Exception::IllegalInstruction;
|
||||||
@ -740,7 +739,6 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
MoveToStateSpecific(StandardException);
|
MoveToStateSpecific(StandardException);
|
||||||
}
|
|
||||||
|
|
||||||
StdCASE(NBCD, {
|
StdCASE(NBCD, {
|
||||||
if(instruction_.mode(0) == Mode::DataRegisterDirect) {
|
if(instruction_.mode(0) == Mode::DataRegisterDirect) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user