Skip to content

Commit f407481

Browse files
committed
misc: address some gcc16.1 warnings
1 parent 83b5d1d commit f407481

6 files changed

Lines changed: 14 additions & 13 deletions

File tree

src/devices/machine/wd2010.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ void wd2010_device::auto_scan_id(uint8_t data)
716716
// FIXME: geometry of disk not available here. Assume sector size already set (?)
717717
update_sdh( SECTOR_SIZE, 0, 0, 1 ); // new sector_size, head, cylinder, sector
718718

719-
logerror("\n(WD2010) : UNSUPPORTED DRIVE CHANGE (old = %02x, new = %02x) Sector size assumed: %d !\n", last_drive, DRIVE, SECTOR_SIZES[SECTOR_SIZE]);
719+
logerror("\n(WD2010) : UNSUPPORTED DRIVE CHANGE (old = %02x, new = %02x) Sector size assumed: %d !\n", last_drive, DRIVE, SECTOR_SIZE);
720720
}
721721
last_drive = DRIVE;
722722
return; // (see NOTES)

src/devices/video/pc_vga.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,6 +1917,7 @@ void svga_device::svga_vh_rgb8(bitmap_rgb32 &bitmap, const rectangle &cliprect)
19171917

19181918
const uint16_t mask_comp = line_compare_mask();
19191919
int curr_addr = 0;
1920+
19201921
// uint16_t line_length;
19211922
// if(vga.crtc.dw)
19221923
// line_length = vga.crtc.offset << 3; // doubleword mode
@@ -1967,6 +1968,7 @@ void svga_device::svga_vh_rgb15(bitmap_rgb32 &bitmap, const rectangle &cliprect)
19671968
/* line compare is screen sensitive */
19681969
// uint16_t mask_comp = 0xff | (TLINES & 0x300);
19691970
int curr_addr = 0;
1971+
(void)curr_addr;
19701972
int yi = 0;
19711973

19721974
for (int addr = vga.crtc.start_addr << 2, line = 0; line < TLINES; line+=height, addr+=offset(), curr_addr+=offset())
@@ -2007,6 +2009,7 @@ void svga_device::svga_vh_rgb16(bitmap_rgb32 &bitmap, const rectangle &cliprect)
20072009
/* line compare is screen sensitive */
20082010
// uint16_t mask_comp = 0xff | (TLINES & 0x300);
20092011
int curr_addr = 0;
2012+
(void)curr_addr;
20102013
int yi = 0;
20112014

20122015
for (int addr = vga.crtc.start_addr << 2, line = 0; line < TLINES; line += height, addr += offset(), curr_addr += offset())
@@ -2047,6 +2050,7 @@ void svga_device::svga_vh_rgb24(bitmap_rgb32 &bitmap, const rectangle &cliprect)
20472050
/* line compare is screen sensitive */
20482051
// uint16_t mask_comp = 0xff | (TLINES & 0x300);
20492052
int curr_addr = 0;
2053+
(void)curr_addr;
20502054
int yi = 0;
20512055

20522056
for (int addr = vga.crtc.start_addr << 3, line=0; line < TLINES; line+=height, addr += offset(), curr_addr += offset())
@@ -2087,6 +2091,7 @@ void svga_device::svga_vh_rgb32(bitmap_rgb32 &bitmap, const rectangle &cliprect)
20872091
/* line compare is screen sensitive */
20882092
// mask_comp = 0xff | (TLINES & 0x300);
20892093
int curr_addr = 0;
2094+
(void)curr_addr;
20902095
int yi = 0;
20912096

20922097
for (int addr = vga.crtc.start_addr << 2, line = 0; line < TLINES; line+=height, addr += offset(), curr_addr += offset())

src/devices/video/x1_020_dx_101.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ void x1_020_dx_101_device::draw_sprites_line(bitmap_ind16 &bitmap, const rectang
618618
const uint16_t *s1 = m_private_spriteram.get();
619619

620620
int sprite_debug_count = 0;
621+
(void)sprite_debug_count;
621622

622623
for (; s1 < &m_private_spriteram[0x1000 / 2]; s1 += 4, sprite_debug_count++)
623624
{

src/mame/atari/irobot_m.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,14 +521,13 @@ void irobot_state::irmb_run()
521521

522522
while ((prevop->flags & (FL_DPSEL | FL_CARRY)) != (FL_DPSEL | FL_CARRY))
523523
{
524-
u32 result;
525-
u32 fu;
524+
u32 result = 0;
526525
u32 tmp;
527526

528527
icount += curop->cycles;
529528

530529
/* Get function code */
531-
fu = curop->func;
530+
u32 fu = curop->func;
532531

533532
/* Modify function for MULT */
534533
if (!(prevop->flags & FL_MULT) || (Q & 1))

src/mame/ramtek/hitme.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ uint32_t hitme_state::screen_update_hitme(screen_device &screen, bitmap_ind16 &b
8080
double dot_freq = 15750 * 336;
8181
/* the number of pixels is the duration times the frequency */
8282
int width_pixels = width_duration * dot_freq;
83-
offs_t offs = 0;
8483

8584
/* start by drawing the tilemap */
8685
m_tilemap->draw(screen, bitmap, cliprect, 0, 0);
@@ -90,7 +89,7 @@ uint32_t hitme_state::screen_update_hitme(screen_device &screen, bitmap_ind16 &b
9089
{
9190
int dy = bitmap.rowpixels();
9291
int inv = 0;
93-
for (int x = 0; x < 40; x++, offs++)
92+
for (int x = 0; x < 40; x++)
9493
{
9594
/* if the high bit is set, reset the oneshot */
9695
if (m_videoram[y * 40 + x] & 0x80)

src/mame/teamconcepts/comquest.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,12 @@ void comquest_state::comquest_write(offs_t offset, uint8_t data)
9191

9292
uint32_t comquest_state::screen_update_comquest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
9393
{
94-
for (int y = 0; y < 128; y++) {
95-
for (int x = 0, j = 0; j < 8; j++, x += 8 * 4) {
9694
#if 0
97-
m_gfxdecode->gfx(0)->opaque(bitmap,0, state->m_data[y][j],0,
98-
0,0,x,y);
95+
for (int y = 0; y < 128; y++)
96+
for (int x = 0, j = 0; j < 8; j++, x += 8 * 4)
97+
m_gfxdecode->gfx(0)->opaque(bitmap, 0, m_data[y][j], 0, 0, 0, x, y);
9998
#endif
100-
}
101-
}
99+
102100
return 0;
103101
}
104102

@@ -207,7 +205,6 @@ static INPUT_PORTS_START( comquest )
207205
PORT_BIT(0x040, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("") PORT_CODE(KEYCODE_6)
208206
PORT_BIT(0x080, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("") PORT_CODE(KEYCODE_7)
209207
#endif
210-
211208
INPUT_PORTS_END
212209

213210
static const gfx_layout comquest_charlayout =

0 commit comments

Comments
 (0)