mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
GCC 4.6 "Variable assigned but not used" fixes, part 5 (no whatsnew)
This commit is contained in:
parent
7d5d4c3d2f
commit
999394b8f5
@ -310,12 +310,12 @@ static STREAM_UPDATE( beezer_stream_update )
|
||||
/* skip if nothing enabled */
|
||||
if ((sh6840_timer[0].cr & 0x01) == 0) // if we're not in reset...
|
||||
{
|
||||
int noise_clocks_this_sample = 0;
|
||||
// int noise_clocks_this_sample = 0;
|
||||
UINT32 chan1_clocks;
|
||||
|
||||
/* generate noise if configured to do so */
|
||||
if (noisy != 0)
|
||||
noise_clocks_this_sample = sh6840_update_noise(state, clocks_this_sample);
|
||||
sh6840_update_noise(state, clocks_this_sample);
|
||||
|
||||
/* handle timer 0 if enabled */
|
||||
t = &sh6840_timer[0];
|
||||
@ -333,7 +333,7 @@ static STREAM_UPDATE( beezer_stream_update )
|
||||
/* generate channel 1-clocked noise if configured to do so */
|
||||
if (noisy != 0)
|
||||
{
|
||||
noise_clocks_this_sample = sh6840_update_noise(state, t->clocks - chan1_clocks);
|
||||
sh6840_update_noise(state, t->clocks - chan1_clocks);
|
||||
if (clocks) state->m_sh6840_noiselatch3 = (state->m_sh6840_LFSR&0x1);
|
||||
}
|
||||
|
||||
|
@ -283,7 +283,7 @@ SCREEN_EOF( dreamwld )
|
||||
static SCREEN_UPDATE( dreamwld )
|
||||
{
|
||||
dreamwld_state *state = screen->machine().driver_data<dreamwld_state>();
|
||||
int tm0size, tm1size;
|
||||
// int tm0size, tm1size;
|
||||
|
||||
tilemap_t *tmptilemap0, *tmptilemap1;
|
||||
|
||||
@ -302,6 +302,7 @@ static SCREEN_UPDATE( dreamwld )
|
||||
tilemap_set_scrolly(tmptilemap1, 0, layer1_scrolly);
|
||||
|
||||
// not on this hw?
|
||||
#if 0
|
||||
switch ((layer0_ctrl & 0x00c0) >> 6)
|
||||
{
|
||||
case 0: tm0size = 1; break;
|
||||
@ -317,7 +318,7 @@ static SCREEN_UPDATE( dreamwld )
|
||||
case 2: tm1size = 3; break;
|
||||
default: tm1size = 0; break;
|
||||
}
|
||||
|
||||
#endif
|
||||
//popmessage("sizes %d %d\n", tm0size, tm1size);
|
||||
|
||||
for (int i = 0; i < 256; i++) /* 256 screen lines */
|
||||
|
@ -237,7 +237,7 @@ static SCREEN_UPDATE( pinkiri8 )
|
||||
}
|
||||
|
||||
{
|
||||
int x,y,unk2;
|
||||
int x,y; //,unk2;
|
||||
int col;
|
||||
|
||||
int spr_offs,i;
|
||||
@ -269,7 +269,7 @@ static SCREEN_UPDATE( pinkiri8 )
|
||||
x &= 0xff;
|
||||
x *= 2;
|
||||
|
||||
unk2 = state->m_janshi_vram2[(i*2)+1];
|
||||
// unk2 = state->m_janshi_vram2[(i*2)+1];
|
||||
y = (state->m_janshi_vram2[(i*2)+0]);
|
||||
|
||||
y = 0x100-y;
|
||||
|
@ -779,7 +779,7 @@ void cdicdic_device::process_delayed_command()
|
||||
UINT32 next_msf = increment_cdda_frame_bcd((m_time & 0xffff7f00) >> 8);
|
||||
UINT32 rounded_next_msf = increment_cdda_sector_bcd((m_time & 0xffff0000) >> 8);
|
||||
UINT32 lba = 0;
|
||||
UINT32 next_lba = 0;
|
||||
// UINT32 next_lba = 0;
|
||||
UINT8 nybbles[6] =
|
||||
{
|
||||
msf & 0x0000000f,
|
||||
@ -789,7 +789,7 @@ void cdicdic_device::process_delayed_command()
|
||||
(msf & 0x000f0000) >> 16,
|
||||
(msf & 0x00f00000) >> 20
|
||||
};
|
||||
UINT8 next_nybbles[6] =
|
||||
/* UINT8 next_nybbles[6] =
|
||||
{
|
||||
rounded_next_msf & 0x0000000f,
|
||||
(rounded_next_msf & 0x000000f0) >> 4,
|
||||
@ -797,7 +797,7 @@ void cdicdic_device::process_delayed_command()
|
||||
(rounded_next_msf & 0x0000f000) >> 12,
|
||||
(rounded_next_msf & 0x000f0000) >> 16,
|
||||
(rounded_next_msf & 0x00f00000) >> 20
|
||||
};
|
||||
};*/
|
||||
|
||||
lba = nybbles[0] + nybbles[1]*10 + ((nybbles[2] + nybbles[3]*10)*75) + ((nybbles[4] + nybbles[5]*10)*75*60);
|
||||
|
||||
@ -808,7 +808,7 @@ void cdicdic_device::process_delayed_command()
|
||||
|
||||
if(!(msf & 0x0000ff))
|
||||
{
|
||||
next_lba = next_nybbles[0] + next_nybbles[1]*10 + ((next_nybbles[2] + next_nybbles[3]*10)*75) + ((next_nybbles[4] + next_nybbles[5]*10)*75*60);
|
||||
// next_lba = next_nybbles[0] + next_nybbles[1]*10 + ((next_nybbles[2] + next_nybbles[3]*10)*75) + ((next_nybbles[4] + next_nybbles[5]*10)*75*60);
|
||||
verboselog(machine(), 0, "Playing CDDA sector from MSF location %06x\n", m_time | 2 );
|
||||
|
||||
cdda_start_audio(machine().device("cdda"), lba, rounded_next_msf);
|
||||
|
@ -165,15 +165,15 @@ UINT16 cdislave_device::register_read(const UINT32 offset, const UINT16 mem_mask
|
||||
|
||||
void cdislave_device::set_mouse_position()
|
||||
{
|
||||
UINT16 x, y;
|
||||
// UINT16 x, y;
|
||||
|
||||
//printf( "Set mouse position: %02x %02x %02x\n", m_in_buf[0], m_in_buf[1], m_in_buf[2] );
|
||||
|
||||
m_fake_mouse_y = ((m_in_buf[1] & 0x0f) << 6) | (m_in_buf[0] & 0x3f);
|
||||
m_fake_mouse_x = ((m_in_buf[1] & 0x70) << 3) | m_in_buf[2];
|
||||
|
||||
x = m_fake_mouse_x;
|
||||
y = m_fake_mouse_y;
|
||||
// x = m_fake_mouse_x;
|
||||
// y = m_fake_mouse_y;
|
||||
|
||||
if(m_polling_active)
|
||||
{
|
||||
|
@ -1570,7 +1570,7 @@ static void buggyboy_draw_road(running_machine &machine, UINT8 *bitmap)
|
||||
UINT32 bnkcs = 1;
|
||||
UINT32 bnkrs = 1;
|
||||
|
||||
UINT32 x_offs;
|
||||
// UINT32 x_offs;
|
||||
UINT8 sf;
|
||||
|
||||
/* Vertical positions shift register */
|
||||
@ -1634,7 +1634,7 @@ static void buggyboy_draw_road(running_machine &machine, UINT8 *bitmap)
|
||||
sld = (vprom[rva0_6] + vregs.slin_val) & 0x38;
|
||||
|
||||
/* Determine the x-offset */
|
||||
x_offs = ls161 & 7;
|
||||
// x_offs = ls161 & 7;
|
||||
|
||||
/* Fill vertical position shift register with bits for this line */
|
||||
/* TODO; cheated slightly to shift stuff up one pixel*/
|
||||
@ -2200,7 +2200,7 @@ static void buggybjr_draw_road(running_machine &machine, UINT8 *bitmap, int wide
|
||||
UINT32 rcmd;
|
||||
UINT32 bnkcs = 1;
|
||||
|
||||
UINT32 x_offs;
|
||||
// UINT32 x_offs;
|
||||
UINT8 sf;
|
||||
|
||||
/* Vertical positions shift register */
|
||||
@ -2259,7 +2259,7 @@ static void buggybjr_draw_road(running_machine &machine, UINT8 *bitmap, int wide
|
||||
sld = (vprom[rva0_6] + vregs.slin_val) & 0x38;
|
||||
|
||||
/* Determine the x-offset */
|
||||
x_offs = ls161 & 7;
|
||||
// x_offs = ls161 & 7;
|
||||
|
||||
/* Fill vertical position shift register with bits for this line */
|
||||
/* TODO; cheated slightly to shift stuff up one pixel*/
|
||||
|
@ -355,7 +355,7 @@ static void draw_sprites( running_machine &machine, bitmap_t *bitmap, const rect
|
||||
int zx, zy, zoomx, zoomy, priority = 0;
|
||||
UINT8 small_sprite, col, flipx, flipy;
|
||||
UINT16 code, bigsprite, map_index;
|
||||
UINT16 rotate = 0;
|
||||
// UINT16 rotate = 0;
|
||||
UINT16 tile_mask = (machine.gfx[0]->total_elements) - 1;
|
||||
static const int primasks[2] = {0x0, 0xfffc}; /* fff0 => under rhs of road only */
|
||||
|
||||
@ -378,10 +378,10 @@ static void draw_sprites( running_machine &machine, bitmap_t *bitmap, const rect
|
||||
if ((spriteram[i + 4] == 0xfff6) && (spriteram[i + 5] == 0))
|
||||
continue;
|
||||
|
||||
if (((spriteram[i + 4] != 0xf800) && (spriteram[i + 4] != 0xfff6))
|
||||
|| ((spriteram[i + 5] != 0xf800) && (spriteram[i + 5] != 0))
|
||||
|| spriteram[i + 7] != 0)
|
||||
rotate = i << 1;
|
||||
// if (((spriteram[i + 4] != 0xf800) && (spriteram[i + 4] != 0xfff6))
|
||||
// || ((spriteram[i + 5] != 0xf800) && (spriteram[i + 5] != 0))
|
||||
// || spriteram[i + 7] != 0)
|
||||
// rotate = i << 1;
|
||||
|
||||
/***** Begin zoom kludge ******/
|
||||
|
||||
|
@ -654,7 +654,10 @@ static int drawsdl_window_draw(sdl_window_info *window, UINT32 dc, int update)
|
||||
UINT8 *surfptr;
|
||||
INT32 pitch;
|
||||
int bpp;
|
||||
Uint32 rmask, gmask, bmask, amask;
|
||||
Uint32 rmask, gmask, bmask;
|
||||
#if (SDL_VERSION_ATLEAST(1,3,0))
|
||||
Uint32 amask;
|
||||
#endif
|
||||
INT32 vofs, hofs, blitwidth, blitheight, ch, cw;
|
||||
|
||||
if (video_config.novideo)
|
||||
@ -674,7 +677,7 @@ static int drawsdl_window_draw(sdl_window_info *window, UINT32 dc, int update)
|
||||
rmask = sdl->sdlsurf->format->Rmask;
|
||||
gmask = sdl->sdlsurf->format->Gmask;
|
||||
bmask = sdl->sdlsurf->format->Bmask;
|
||||
amask = sdl->sdlsurf->format->Amask;
|
||||
// amask = sdl->sdlsurf->format->Amask;
|
||||
|
||||
if (window->blitwidth != sdl->old_blitwidth || window->blitheight != sdl->old_blitheight)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user