Fixed build warnings for gcc

This commit is contained in:
Robert 2021-10-29 22:33:34 +02:00
parent cabc0ae639
commit a579793bd1
8 changed files with 45 additions and 37 deletions

View file

@ -2,6 +2,7 @@
#define _MAPPER_H_
#include <stdio.h>
#include "SDL.h"
#include "types.h"
struct PPU;
@ -16,7 +17,7 @@ struct Mapper
void(*write_cpu)(void*, Word, Byte);
void(*write_ppu)(void*, Word, Byte);
void(*get_pattern_table_texture)(void*, void*, int);
void(*get_pattern_table_texture)(void*, SDL_Texture*, int);
};
#define MapperReadCPU(mapper, addr) mapper->read_cpu(mapper->mapperStruct, addr)
@ -28,4 +29,4 @@ struct Mapper
struct Mapper* createMapper(Byte id, Byte prg_rom_size, Byte chr_rom_size, FILE* fp);
void destroyMapper(struct Mapper* mapper);
#endif // _MAPPER_H_
#endif // _MAPPER_H_