diff --git a/src/boards/235.c b/src/boards/235.c index b0a151c..c26d451 100644 --- a/src/boards/235.c +++ b/src/boards/235.c @@ -21,9 +21,6 @@ #include "mapinc.h" -static uint8 *CHRRAM; -static uint32 CHRRAMSIZE; - static uint16 cmdreg; static uint8 unrom, reg, openbus; diff --git a/src/boards/364.c b/src/boards/364.c index 5fc4c2c..b5f4a5d 100644 --- a/src/boards/364.c +++ b/src/boards/364.c @@ -44,11 +44,6 @@ static void M364Power(void) { SetWriteHandler(0x7000, 0x7FFF, M364Write); } -static void M364Reset(void) { - EXPREGS[0] = 0; - MMC3RegReset(); -} - void Mapper364_Init(CartInfo *info) { GenMMC3_Init(info, 512, 512, 8, 0); pwrap = M364PW; diff --git a/src/boards/375.c b/src/boards/375.c index 2b78638..5004fb2 100644 --- a/src/boards/375.c +++ b/src/boards/375.c @@ -73,10 +73,6 @@ static void Sync(void) { setprg8r(0x10, 0x6000, 0); } -static DECLFR(M375Read) { - return CartBR(A); -} - static DECLFW(M375Write) { if (addrlatch & 0x800) datalatch = V; diff --git a/src/boards/hp898f.c b/src/boards/hp898f.c index 43ba53d..5ce27df 100644 --- a/src/boards/hp898f.c +++ b/src/boards/hp898f.c @@ -48,13 +48,6 @@ static DECLFW(HP898FWrite) { } } -static DECLFW(HP898FWriteEx) { - switch (A & 4) { - case 0: regs[0] = V; break; /* CHR */ - case 4: regs[1] = (V & 0xC0) | ((V >> 2) & 6) | ((V & 0x20) ? 1 : 0); break; /* PRG */ - } - Sync(); -} static void HP898FPower(void) { regs[0] = regs[1] = 0; Sync(); diff --git a/src/boards/jyasic.c b/src/boards/jyasic.c index 7ffb0a1..89fd170 100644 --- a/src/boards/jyasic.c +++ b/src/boards/jyasic.c @@ -689,8 +689,6 @@ void Mapper421_Init(CartInfo *info) static uint8 HSK007Reg[4]; void sync394 (void) /* Called when J.Y. ASIC is active */ { - int prgAND =HSK007Reg[3] &0x10? 0x1F: 0x0F; - int chrAND =HSK007Reg[3] &0x80? 0xFF: 0x7F; int prgOR =HSK007Reg[3] <<1 &0x010 | HSK007Reg[1] <<5 &0x020; int chrOR =HSK007Reg[3] <<1 &0x080 | HSK007Reg[1] <<8 &0x100; syncPRG(0x1F, prgOR); diff --git a/src/drivers/libretro/libretro.c b/src/drivers/libretro/libretro.c index ab3ad9b..cdec31d 100644 --- a/src/drivers/libretro/libretro.c +++ b/src/drivers/libretro/libretro.c @@ -1321,7 +1321,6 @@ static bool update_option_visibility(void) { struct retro_variable var = {0}; bool updated = false; - size_t i, size; /* If frontend supports core option categories, * then fceumm_show_adv_system_options and @@ -1415,7 +1414,7 @@ static bool update_option_visibility(void) static void set_variables(void) { struct retro_core_option_display option_display; - unsigned i = 0, index = 0; + unsigned index = 0; option_display.visible = false; @@ -2696,8 +2695,8 @@ static void retro_run_blit(uint8_t *gfx) void retro_run(void) { uint8_t *gfx; - int32_t i, ssize = 0; - bool updated = false; + int32_t ssize = 0; + bool updated = false; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated) check_variables(false); diff --git a/src/sound.c b/src/sound.c index d31a9f7..dbf1c8a 100644 --- a/src/sound.c +++ b/src/sound.c @@ -691,9 +691,7 @@ static void RDoSQLQ(void) { static void RDoTriangle(void) { int32 V; - int32 tcout, cout; - - tcout = (tristep & 0xF); + int32 tcout = (tristep & 0xF); if (!(tristep & 0x10)) tcout ^= 0xF; tcout = (tcout * 3) << 16; /* (tcout<<1); */