Correct a few warnings reported by "clang"

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2017-11-30 14:37:18 +00:00
parent 6dbb1e1c13
commit a0f7d584b6
3 changed files with 7 additions and 7 deletions

View File

@ -56,8 +56,8 @@ namespace EightBit {
int interrupt(bool maskable, uint8_t value);
virtual int execute(uint8_t opcode);
int step();
virtual int execute(uint8_t opcode) final;
virtual int step() final;
virtual register16_t& AF() override;
virtual register16_t& BC() override;
@ -104,8 +104,8 @@ namespace EightBit {
std::array<register16_t, 2> m_accumulatorFlags;
int m_accumulatorFlagsSet = 0;
register16_t m_ix = { 0xff, 0xff };
register16_t m_iy = { 0xff, 0xff };
register16_t m_ix = { { 0xff, 0xff } };
register16_t m_iy = { { 0xff, 0xff } };
refresh_t m_refresh = 0x7f;

View File

@ -172,6 +172,6 @@ namespace EightBit {
private:
std::array<opcode_decoded_t, 0x100> m_decodedOpcodes;
register16_t m_sp = { 0xff, 0xff };
register16_t m_sp = { { 0xff, 0xff } };
};
}

View File

@ -141,8 +141,8 @@ namespace EightBit {
private:
Bus& m_bus;
int m_cycles = 0;
register16_t m_pc = { 0, 0 };
register16_t m_memptr = { 0, 0 };
register16_t m_pc = { { 0, 0 } };
register16_t m_memptr = { { 0, 0 } };
bool m_halted = false;
bool m_power = false;
};