mirror of
https://github.com/holub/mame
synced 2025-05-22 21:58:57 +03:00
fixed some unread variable warning reported by cppcheck (no whatsnew)
This commit is contained in:
parent
9fe7b3bbcc
commit
b938c3e690
@ -388,7 +388,7 @@ static void InitDasm32025(void)
|
|||||||
CPU_DISASSEMBLE( tms32025 )
|
CPU_DISASSEMBLE( tms32025 )
|
||||||
{
|
{
|
||||||
UINT32 flags = 0;
|
UINT32 flags = 0;
|
||||||
int a, b, c, d, k, m, n, p, r, s, t, w, x; /* these can all be filled in by parsing an instruction */
|
int a, b, c, d, k, m, n, p, r, s, t, w; /* these can all be filled in by parsing an instruction */
|
||||||
int i;
|
int i;
|
||||||
int op;
|
int op;
|
||||||
int cnt = 1;
|
int cnt = 1;
|
||||||
@ -433,7 +433,7 @@ CPU_DISASSEMBLE( tms32025 )
|
|||||||
|
|
||||||
/* shift out operands */
|
/* shift out operands */
|
||||||
cp = Op[op].parse;
|
cp = Op[op].parse;
|
||||||
a = b = c = d = k = m = n = p = r = s = t = w = x = 0;
|
a = b = c = d = k = m = n = p = r = s = t = w = 0;
|
||||||
|
|
||||||
while (bit >= 0)
|
while (bit >= 0)
|
||||||
{
|
{
|
||||||
|
@ -1221,13 +1221,13 @@ static void write_register(YMF271Chip *chip, int slotnum, int reg, int data)
|
|||||||
static void ymf271_write_fm(YMF271Chip *chip, int grp, int adr, int data)
|
static void ymf271_write_fm(YMF271Chip *chip, int grp, int adr, int data)
|
||||||
{
|
{
|
||||||
int reg;
|
int reg;
|
||||||
int slotnum;
|
//int slotnum;
|
||||||
int slot_group;
|
int slot_group;
|
||||||
int sync_mode, sync_reg;
|
int sync_mode, sync_reg;
|
||||||
//YMF271Slot *slot;
|
//YMF271Slot *slot;
|
||||||
|
|
||||||
slotnum = 12*grp;
|
//slotnum = 12*grp;
|
||||||
slotnum += fm_tab[adr & 0xf];
|
//slotnum += fm_tab[adr & 0xf];
|
||||||
//slot = &chip->slots[slotnum];
|
//slot = &chip->slots[slotnum];
|
||||||
slot_group = fm_tab[adr & 0xf];
|
slot_group = fm_tab[adr & 0xf];
|
||||||
|
|
||||||
|
@ -75,7 +75,9 @@ WRITE8_DEVICE_HANDLER( turbo_sound_a_w )
|
|||||||
samples_device *samples = device->machine().device<samples_device>("samples");
|
samples_device *samples = device->machine().device<samples_device>("samples");
|
||||||
#endif
|
#endif
|
||||||
turbo_state *state = device->machine().driver_data<turbo_state>();
|
turbo_state *state = device->machine().driver_data<turbo_state>();
|
||||||
|
#if (!DISCRETE_TEST)
|
||||||
UINT8 diff = data ^ state->m_sound_state[0];
|
UINT8 diff = data ^ state->m_sound_state[0];
|
||||||
|
#endif
|
||||||
state->m_sound_state[0] = data;
|
state->m_sound_state[0] = data;
|
||||||
|
|
||||||
#if (!DISCRETE_TEST)
|
#if (!DISCRETE_TEST)
|
||||||
|
@ -1288,7 +1288,7 @@ static void render_poly_texture(void *dest, INT32 scanline, const poly_extent *e
|
|||||||
INT32 curz = extent->param[0].start;
|
INT32 curz = extent->param[0].start;
|
||||||
INT32 curu = extent->param[1].start;
|
INT32 curu = extent->param[1].start;
|
||||||
INT32 curv = extent->param[2].start;
|
INT32 curv = extent->param[2].start;
|
||||||
INT32 curi = extent->param[3].start;
|
//INT32 curi = extent->param[3].start;
|
||||||
INT32 dzdx = extent->param[0].dpdx;
|
INT32 dzdx = extent->param[0].dpdx;
|
||||||
INT32 dudx = extent->param[1].dpdx;
|
INT32 dudx = extent->param[1].dpdx;
|
||||||
INT32 dvdx = extent->param[2].dpdx;
|
INT32 dvdx = extent->param[2].dpdx;
|
||||||
@ -1334,7 +1334,7 @@ static void render_poly_texture(void *dest, INT32 scanline, const poly_extent *e
|
|||||||
curz += dzdx;
|
curz += dzdx;
|
||||||
curu += dudx;
|
curu += dudx;
|
||||||
curv += dvdx;
|
curv += dvdx;
|
||||||
curi += didx;
|
//curi += didx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user