fix some compile warnings

This commit is contained in:
Barry Harris 2015-10-27 13:23:57 +00:00
parent 9f9526858b
commit a093fbd0ef
16 changed files with 51 additions and 51 deletions

View File

@ -1714,7 +1714,7 @@ static UINT8 __fastcall citybomb_main_read_byte(UINT32 address)
return 0;
}
static void nemesis_filter_w(UINT16 offset)
static void nemesis_filter_w(UINT16 /*offset*/)
{
#if 0
// not used right now..

View File

@ -4208,7 +4208,7 @@ INT32 MegadriveFrame()
INT32 done_z80 = 0;
INT32 hint = RamVReg->reg[10]; // Hint counter
INT32 total_68k_cycles, total_z80_cycles;
INT32 vcnt_wrap;
INT32 vcnt_wrap = 0;
if( Hardware & 0x40 ) {
lines = 313;

View File

@ -561,7 +561,7 @@ static INT32 MemIndex()
return 0;
}
static UINT8 earom_read(UINT16 address)
static UINT8 earom_read(UINT16 /*address*/)
{
return (earom_data);
}
@ -572,7 +572,7 @@ static void earom_write(UINT16 offset, UINT8 data)
earom_data = data;
}
static void earom_ctrl_write(UINT16 offset, UINT8 data)
static void earom_ctrl_write(UINT16 /*offset*/, UINT8 data)
{
/*
0x01 = clock

View File

@ -377,7 +377,7 @@ static void centipede_recalcpalette()
}
}
static UINT8 earom_read(UINT16 address)
static UINT8 earom_read(UINT16 /*address*/)
{
return (earom_data);
}
@ -388,7 +388,7 @@ static void earom_write(UINT16 offset, UINT8 data)
earom_data = data;
}
static void earom_ctrl_write(UINT16 offset, UINT8 data)
static void earom_ctrl_write(UINT16 /*offset*/, UINT8 data)
{
/*
0x01 = clock

View File

@ -412,7 +412,7 @@ void draw_tiles(UINT8 draw_flag)
}
}
static void RenderTileCPMP(INT32 code, INT32 color, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 width, INT32 height, INT32 offset, INT32 mode, UINT8 *gfxrom)
static void RenderTileCPMP(INT32 code, INT32 color, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 width, INT32 height, INT32 offset, INT32 /*mode*/, UINT8 *gfxrom)
{
UINT16 *dest = pTransDraw;
UINT8 *gfx = gfxrom;

View File

@ -207,7 +207,7 @@ static UINT8 __fastcall mouser_sub_read(UINT16 address)
return 0;
}
static void __fastcall mouser_sub_write(UINT16 address, UINT8 data)
static void __fastcall mouser_sub_write(UINT16 address, UINT8 /*data*/)
{
if(address == 0x4000)
ZetSetIRQLine(Z80_INPUT_LINE_NMI, CPU_IRQSTATUS_NONE);

View File

@ -704,7 +704,7 @@ static void namcos86_cpu0_write(UINT16 address, UINT8 data)
}
}
static void hopmappy_cpu1_write(UINT16 address, UINT8 data)
static void hopmappy_cpu1_write(UINT16 address, UINT8 /*data*/)
{
switch (address)
{
@ -978,7 +978,7 @@ static UINT8 namcos86_mcu_read(UINT16 address)
return 0;
}
static void namcos86_mcu_write_port(UINT16 port, UINT8 data)
static void namcos86_mcu_write_port(UINT16 port, UINT8 /*data*/)
{
switch (port & 0x1ff)
{

View File

@ -448,7 +448,7 @@ static UINT8 __fastcall raiders5_sub_read(UINT16 address)
return 0;
}
UINT8 __fastcall raiders5_in(UINT16 address)
UINT8 __fastcall raiders5_in(UINT16 /*address*/)
{
return 0; // NOP
}
@ -732,12 +732,12 @@ static UINT8 pkunwar_port_3(UINT32)
return DrvDips[0];
}
void nova2001_scroll_x_w(UINT32 offset,UINT32 data)
void nova2001_scroll_x_w(UINT32 /*offset*/,UINT32 data)
{
xscroll = data;
}
void nova2001_scroll_y_w(UINT32 offset,UINT32 data)
void nova2001_scroll_y_w(UINT32 /*offset*/,UINT32 data)
{
yscroll = data;
}

View File

@ -511,7 +511,7 @@ static void __fastcall port_write(UINT16 port, UINT8 data)
}
}
static void popeye_ayportB_write(UINT32 addr, UINT32 data)
static void popeye_ayportB_write(UINT32 /*addr*/, UINT32 data)
{
/* bit 0 flips screen */
//flip_screen_set(data & 1);
@ -520,7 +520,7 @@ static void popeye_ayportB_write(UINT32 addr, UINT32 data)
m_dswbit = (data & 0x0e) >> 1;
}
static UINT8 popeye_ayportA_read(UINT32 addr)
static UINT8 popeye_ayportA_read(UINT32 /*addr*/)
{
return (DrvDip[0] & 0x7f) | ((DrvDip[1] << (7-m_dswbit)) & 0x80);
}

View File

@ -323,7 +323,7 @@ static void __fastcall main_write(UINT32 address, UINT8 data)
if ((address & 0xffe0) == 0x57e0) address &= ~0x7e0;
if ((address & 0xffff) == 0x5ff8) address &= ~0x7f8;
if (address >= 0x0000 && address <= 0x0fff) {
if (/*address >= 0x0000 &&*/ address <= 0x0fff) {
DrvNVRAM[address - 0x0000] = data;
return;
}
@ -375,7 +375,7 @@ static UINT8 __fastcall main_read(UINT32 address)
return DrvV20ROM[address - 0x6000];
}
if (address >= 0x0000 && address <= 0x0fff) {
if (/*address >= 0x0000 &&*/ address <= 0x0fff) {
return DrvNVRAM[address - 0x0000];
}
@ -424,7 +424,7 @@ static void qbert_knocker(UINT8 knock)
*knocker_prev = knock;
}
static void gottlieb_sh_w(UINT16 offset, UINT8 data)
static void gottlieb_sh_w(UINT16 /*offset*/, UINT8 data)
{
static INT32 random_offset=0;
data &= 0x3f;
@ -490,7 +490,7 @@ static void blank_queue()
static void add_to_queue(UINT8 data)
{
if (*vtqueuepos > 0x20-1 || GetCurrentFrame() > *vtqueuetime+2)
if (*vtqueuepos > 0x20-1 || (UINT32)GetCurrentFrame() > *vtqueuetime+2)
blank_queue();
vtqueue[(*vtqueuepos)++] = data;
}
@ -514,7 +514,7 @@ static void audio_write(UINT16 address, UINT8 data)
Drv6502ROM[address - 0x7000] = data;
}
if (address >= 0x0000 && address <= 0x01ff) {
if (/*address >= 0x0000 &&*/ address <= 0x01ff) {
riot_ram[address & 0x7f] = data;
}
@ -551,7 +551,7 @@ static UINT8 audio_read(UINT16 address)
return Drv6502ROM[address - 0x7000];
}
if (address >= 0x0000 && address <= 0x01ff) {
if (/*address >= 0x0000 &&*/ address <= 0x01ff) {
return riot_ram[address&0x7f];
}
@ -757,7 +757,7 @@ static INT32 DrvExit()
}
static void RenderTileCPMP(INT32 code, INT32 color, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 width, INT32 height, INT32 offset, INT32 mode, UINT8 *gfxrom)
static void RenderTileCPMP(INT32 code, INT32 color, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 width, INT32 height, INT32 offset, INT32 /*mode*/, UINT8 *gfxrom)
{
UINT16 *dest = pTransDraw;
UINT8 *gfx = gfxrom;

View File

@ -477,7 +477,7 @@ static void warpwarp_music2_w(UINT8 data)
}
}
static void warpwarp_timer_tiktiktik(INT32 ticks)
static void warpwarp_timer_tiktiktik(INT32 /*ticks*/)
{// warpwarp_timer_tiktiktik(); must be called 256 times per frame
switch (music_volume_timer) {
case 1: music_volume_decay(); // no breaks!
@ -747,7 +747,7 @@ static void warpwarp_palette_init()
DrvPalette[(i * 2) + 1] = BurnHighCol(r, g, b, 0);;
}
DrvPalette[0x200] = BurnHighCol(weight_ball[0], weight_ball[0], weight_ball[0], 0);
DrvPalette[0x200] = BurnHighCol((INT32)weight_ball[0], (INT32)weight_ball[0], (INT32)weight_ball[0], 0);
}
static UINT32 geebee_palette[3];
@ -921,7 +921,7 @@ static UINT8 warpwarp_dsw1_r(UINT8 offset)
return (DrvDip[0] >> (offset & 7)) & 1;
}
static UINT8 warpwarp_vol_r(UINT8 offset)
static UINT8 warpwarp_vol_r(UINT8 /*offset*/)
{
INT32 res;

View File

@ -47,13 +47,13 @@ void __fastcall writemem_mapper_msx(UINT16 offset, UINT8 data)
return;
}
if (offset >= 0xc000 && offset <= 0xffff)
if (offset >= 0xc000 /*&& offset <= 0xffff*/)
sms.wram[offset & 0x1fff] = data;
}
void __fastcall writemem_mapper_none(UINT16 offset, UINT8 data)
{
if (offset >= 0xc000 && offset <= 0xffff)
if (offset >= 0xc000 /*&& offset <= 0xffff*/)
sms.wram[offset & 0x1fff] = data;
}
@ -100,7 +100,7 @@ void __fastcall writemem_mapper_xin1(UINT16 offset, UINT8 data)
UINT8 __fastcall readmem_mapper_xin1(UINT16 offset) // HiCom Xin1
{
if(offset >= 0xc000 && offset <= 0xffff)
if(offset >= 0xc000 /*&& offset <= 0xffff*/)
return sms.wram[offset & 0x1fff];
else
if (offset >= 0x8000) {
@ -149,10 +149,10 @@ UINT8 __fastcall readmem_mapper_korea8k(UINT16 offset) // aka Janggun
{
UINT8 data = 0;
if(offset >= 0xc000 && offset <= 0xffff)
if(offset >= 0xc000 /*&& offset <= 0xffff*/)
data = sms.wram[offset & 0x1fff];
else
if(offset >= 0x0000 && offset <= 0x3fff)
if(/*offset >= 0x0000 &&*/ offset <= 0x3fff)
data = cart.rom[offset];
else
if(offset >= 0x4000 && offset <= 0x5fff)

View File

@ -908,7 +908,7 @@ static void ta7630_init()
for (i = 0; i < 16; i++)
{
double max = 100.0 / pow(10.0, db/20.0 );
m_vol_ctrl[15 - i] = max;
m_vol_ctrl[15 - i] = (INT32)max;
db += db_step;
db_step += db_step_inc;
@ -943,7 +943,7 @@ static void sound_control_1_w(UINT8 data)
MSM5232SetRoute(vol, BURN_SND_MSM5232_ROUTE_7);
}
static void AY_ayportA_write(UINT32 addr, UINT32 data)
static void AY_ayportA_write(UINT32 /*addr*/, UINT32 data)
{
if (data == 0xff) return; // ignore ay-init
m_snd_ctrl2 = data & 0xff;

View File

@ -802,13 +802,13 @@ void ics2115_recalc_irq()
m_irq_cb(irq ? CPU_IRQSTATUS_ACK : CPU_IRQSTATUS_NONE);
}
void ics2115_timer_cb_0(INT32 param)
void ics2115_timer_cb_0(INT32 /*param*/)
{
m_irq_pending |= 1 << 0;
ics2115_recalc_irq();
}
void ics2115_timer_cb_1(INT32 param)
void ics2115_timer_cb_1(INT32 /*param*/)
{
m_irq_pending |= 1 << 1;
ics2115_recalc_irq();

View File

@ -328,8 +328,8 @@ static UINT8 *rand17;
pokey[chip].samplepos_fract &= 0x000000ff; \
} \
/* store sum of output signals into the buffer */ \
nLeftSample = buffer[0] + (sum * pokey_mastervol); \
nRightSample = buffer[1] + (sum * pokey_mastervol); \
nLeftSample = buffer[0] + (INT32)(sum * pokey_mastervol); \
nRightSample = buffer[1] + (INT32)(sum * pokey_mastervol); \
buffer[0] = BURN_SND_CLIP(nLeftSample); \
buffer[1] = BURN_SND_CLIP(nRightSample); \
buffer++; buffer++; \
@ -493,28 +493,28 @@ void (*update[MAXPOKEYS])(int,INT16*,int) =
while( length > 0 ) \
{ \
UINT32 event = pokey[chip].samplepos_whole; \
UINT32 channel = SAMPLE; \
if( pokey[chip].counter[CHAN1] < event ) \
UINT32 channel = (UINT32)SAMPLE; \
if( pokey[chip].counter[CHAN1] < (INT32)event ) \
{ \
event = pokey[chip].counter[CHAN1]; \
channel = CHAN1; \
} \
if( pokey[chip].counter[CHAN2] < event ) \
if( pokey[chip].counter[CHAN2] < (INT32)event ) \
{ \
event = pokey[chip].counter[CHAN2]; \
channel = CHAN2; \
} \
if( pokey[chip].counter[CHAN3] < event ) \
if( pokey[chip].counter[CHAN3] < (INT32)event ) \
{ \
event = pokey[chip].counter[CHAN3]; \
channel = CHAN3; \
} \
if( pokey[chip].counter[CHAN4] < event ) \
if( pokey[chip].counter[CHAN4] < (INT32)event ) \
{ \
event = pokey[chip].counter[CHAN4]; \
channel = CHAN4; \
} \
if( channel == SAMPLE ) \
if( channel == (UINT32)SAMPLE ) \
{ \
PROCESS_SAMPLE(chip); \
} \
@ -1246,7 +1246,7 @@ void pokey_register_w(int chip, int offs, int data)
p->audible[CHAN1] = !(
(p->AUDC[CHAN1] & VOLUME_ONLY) ||
(p->AUDC[CHAN1] & VOLUME_MASK) == 0 ||
((p->AUDC[CHAN1] & PURE) && new_val < (p->samplerate_24_8 >> 8)));
((p->AUDC[CHAN1] & PURE) && new_val < ((INT32)p->samplerate_24_8 >> 8)));
if( !p->audible[CHAN1] )
{
p->output[CHAN1] = 1;
@ -1282,7 +1282,7 @@ void pokey_register_w(int chip, int offs, int data)
p->audible[CHAN2] = !(
(p->AUDC[CHAN2] & VOLUME_ONLY) ||
(p->AUDC[CHAN2] & VOLUME_MASK) == 0 ||
((p->AUDC[CHAN2] & PURE) && new_val < (p->samplerate_24_8 >> 8)));
((p->AUDC[CHAN2] & PURE) && new_val < ((INT32)p->samplerate_24_8 >> 8)));
if( !p->audible[CHAN2] )
{
p->output[CHAN2] = 1;
@ -1310,7 +1310,7 @@ void pokey_register_w(int chip, int offs, int data)
p->audible[CHAN3] = !(
(p->AUDC[CHAN3] & VOLUME_ONLY) ||
(p->AUDC[CHAN3] & VOLUME_MASK) == 0 ||
((p->AUDC[CHAN3] & PURE) && new_val < (p->samplerate_24_8 >> 8))) ||
((p->AUDC[CHAN3] & PURE) && new_val < ((INT32)p->samplerate_24_8 >> 8))) ||
(p->AUDCTL & CH1_FILTER);
if( !p->audible[CHAN3] )
{
@ -1347,7 +1347,7 @@ void pokey_register_w(int chip, int offs, int data)
p->audible[CHAN4] = !(
(p->AUDC[CHAN4] & VOLUME_ONLY) ||
(p->AUDC[CHAN4] & VOLUME_MASK) == 0 ||
((p->AUDC[CHAN4] & PURE) && new_val < (p->samplerate_24_8 >> 8))) ||
((p->AUDC[CHAN4] & PURE) && new_val < ((INT32)p->samplerate_24_8 >> 8))) ||
(p->AUDCTL & CH2_FILTER);
if( !p->audible[CHAN4] )
{
@ -1388,22 +1388,22 @@ void quad_pokey_w (int offset,int data)
pokey_register_w(pokey_num, pokey_reg, data);
}
void pokey1_serin_ready(int after)
void pokey1_serin_ready(int /*after*/)
{
//timer_set(1.0 * after / intf.baseclock, 0, pokey_serin_ready);
}
void pokey2_serin_ready(int after)
void pokey2_serin_ready(int /*after*/)
{
//timer_set(1.0 * after / intf.baseclock, 1, pokey_serin_ready);
}
void pokey3_serin_ready(int after)
void pokey3_serin_ready(int /*after*/)
{
//timer_set(1.0 * after / intf.baseclock, 2, pokey_serin_ready);
}
void pokey4_serin_ready(int after)
void pokey4_serin_ready(int /*after*/)
{
//timer_set(1.0 * after / intf.baseclock, 3, pokey_serin_ready);
}