mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Resolves GCC warnings from dangling Apple IIgs work.
This commit is contained in:
parent
60a0f8e824
commit
0f9ab53ea0
@ -200,7 +200,7 @@ template <typename Machine> class AuxiliaryMemorySwitches {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// @returns @c true if the alternative zero page should be used; @c false otherwise.
|
/// @returns @c true if the alternative zero page should be used; @c false otherwise.
|
||||||
const ZeroState zero_state() const {
|
ZeroState zero_state() const {
|
||||||
return switches_.alternative_zero_page;
|
return switches_.alternative_zero_page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,8 +107,8 @@ class MemManagerChecker {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool has_seen_valid_memory_ = false;
|
// bool has_seen_valid_memory_ = false;
|
||||||
bool should_validate_ = false;
|
// bool should_validate_ = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool validate_memory_manager(const Apple::IIgs::MemoryMap &memory, bool print) {
|
bool validate_memory_manager(const Apple::IIgs::MemoryMap &memory, bool print) {
|
||||||
|
@ -35,7 +35,7 @@ class MemoryMap {
|
|||||||
// Establish bank mapping.
|
// Establish bank mapping.
|
||||||
uint8_t next_region = 0;
|
uint8_t next_region = 0;
|
||||||
auto region = [&next_region, this]() -> uint8_t {
|
auto region = [&next_region, this]() -> uint8_t {
|
||||||
assert(next_region != regions.size());
|
assert(next_region != this->regions.size());
|
||||||
return next_region++;
|
return next_region++;
|
||||||
};
|
};
|
||||||
auto set_region = [this](uint8_t bank, uint16_t start, uint16_t end, uint8_t region) {
|
auto set_region = [this](uint8_t bank, uint16_t start, uint16_t end, uint8_t region) {
|
||||||
@ -49,7 +49,7 @@ class MemoryMap {
|
|||||||
++target;
|
++target;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
auto set_regions = [this, set_region, region](uint8_t bank, std::initializer_list<uint16_t> addresses, std::vector<uint8_t> allocated_regions = {}) {
|
auto set_regions = [set_region, region](uint8_t bank, std::initializer_list<uint16_t> addresses, std::vector<uint8_t> allocated_regions = {}) {
|
||||||
uint16_t previous = 0x0000;
|
uint16_t previous = 0x0000;
|
||||||
auto next_region = allocated_regions.begin();
|
auto next_region = allocated_regions.begin();
|
||||||
for(uint16_t address: addresses) {
|
for(uint16_t address: addresses) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user