get rid of warnings in the mapping module

This commit is contained in:
Robert 2023-01-28 01:32:52 +01:00
parent 94f4553f65
commit 9bd8d02092
4 changed files with 6 additions and 7 deletions

View file

@ -39,8 +39,8 @@ public:
return false;
}
virtual Byte ReadVRAM(Word addr) { return 0x00; }
virtual void WriteVRAM(Word addr, Byte val) {}
virtual Byte ReadVRAM(Word) { return 0x00; }
virtual void WriteVRAM(Word, Byte) {}
protected:
Mapper(const Header& header) : header(header), prgBanks(header.PrgROM), chrBanks(header.ChrROM)

View file

@ -36,10 +36,10 @@ Byte Mapper000::ReadPPU(Word addr)
return 0x00;
}
void Mapper000::WriteCPU(Word addr, Byte val)
void Mapper000::WriteCPU(Word, Byte)
{
}
void Mapper000::WritePPU(Word addr, Byte val)
void Mapper000::WritePPU(Word, Byte)
{
}

View file

@ -99,9 +99,8 @@ void Mapper001::WriteCPU(Word addr, Byte val)
}
}
void Mapper001::WritePPU(Word addr, Byte val)
void Mapper001::WritePPU(Word, Byte)
{
}
bool Mapper001::MapCIRAM(Word& addr)

View file

@ -43,6 +43,6 @@ void Mapper003::WriteCPU(Word addr, Byte val)
}
}
void Mapper003::WritePPU(Word addr, Byte val)
void Mapper003::WritePPU(Word, Byte)
{
}