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 2 (no whatsnew)
This commit is contained in:
parent
9bb0a24eb1
commit
a37912936c
@ -753,7 +753,7 @@ MACHINE_CONFIG_END
|
||||
static void dcs_boot(running_machine &machine)
|
||||
{
|
||||
UINT8 buffer[0x1000];
|
||||
UINT32 max_banks;
|
||||
// UINT32 max_banks;
|
||||
UINT16 *base;
|
||||
int i;
|
||||
|
||||
@ -763,7 +763,7 @@ static void dcs_boot(running_machine &machine)
|
||||
case 1:
|
||||
|
||||
/* determine the base */
|
||||
max_banks = dcs.bootrom_words / 0x1000;
|
||||
// max_banks = dcs.bootrom_words / 0x1000;
|
||||
base = dcs.bootrom + ((dcs.sounddata_bank * 0x1000) % dcs.bootrom_words);
|
||||
|
||||
/* convert from 16-bit data to 8-bit data and boot */
|
||||
|
@ -324,7 +324,7 @@ static SCREEN_UPDATE( maygayv1 )
|
||||
// Draw on this line?
|
||||
if ( !BIT(slmask, obj) )
|
||||
{
|
||||
UINT32 objbase, trans, width, res, cspec;
|
||||
UINT32 objbase, trans, width;
|
||||
INT32 x, xpos;
|
||||
UINT16 w0, w1, w2;
|
||||
UINT16 *objptr;
|
||||
@ -343,11 +343,11 @@ static SCREEN_UPDATE( maygayv1 )
|
||||
// printf("Blinking\n");
|
||||
|
||||
/* Resolution: either 4bpp or 2bpp */
|
||||
res = (w0 >> 9) & 3;
|
||||
// res = (w0 >> 9) & 3;
|
||||
|
||||
|
||||
/* Expand 2bpp to 3bpp */
|
||||
cspec = (w0 & 3) << 2;
|
||||
//cspec = (w0 & 3) << 2;
|
||||
|
||||
if ( BIT(w0, 11) )
|
||||
{
|
||||
|
@ -675,13 +675,13 @@ static WRITE8_HANDLER( hotchase_sound_control_w )
|
||||
{
|
||||
device_t *sound[3];
|
||||
|
||||
int reg[8];
|
||||
// int reg[8];
|
||||
|
||||
sound[0] = space->machine().device("konami1");
|
||||
sound[1] = space->machine().device("konami2");
|
||||
sound[2] = space->machine().device("konami3");
|
||||
|
||||
reg[offset] = data;
|
||||
// reg[offset] = data;
|
||||
|
||||
switch (offset)
|
||||
{
|
||||
|
@ -260,7 +260,7 @@ static const UINT8 ptable[7][8] =
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10}
|
||||
};
|
||||
|
||||
INT32 data1, data2, i, j, vpos, hpos, voffs, hoffs, vcorr, hcorr, vmask, hmask, magicid;
|
||||
INT32 data1, data2, i, j, vpos, hpos, voffs, hoffs, vcorr, hcorr, vmask, magicid;
|
||||
UINT32 *src, *srcend, *obj, *objend;
|
||||
UINT16 *dst;
|
||||
const UINT8 *zcode, *pcode;
|
||||
@ -347,7 +347,7 @@ if((data1=obj[0])&0x80000000)\
|
||||
// I can't make out anything meaningful.
|
||||
magicid = srcbase[0x71f0/4];
|
||||
|
||||
hmask = vmask = 0x3ff;
|
||||
vmask = 0x3ff;
|
||||
if (magicid != 0x11010111)
|
||||
{
|
||||
switch (magicid)
|
||||
|
@ -1274,12 +1274,12 @@ static void spc7110_mmio_write(running_machine &machine, UINT32 addr, UINT8 data
|
||||
case 0x4805: snes_spc7110.r4805 = data; break;
|
||||
case 0x4806:
|
||||
{
|
||||
UINT32 table, index, length, address, mode, offset;
|
||||
UINT32 table, index, address, mode, offset;
|
||||
snes_spc7110.r4806 = data;
|
||||
|
||||
table = (snes_spc7110.r4801 + (snes_spc7110.r4802 << 8) + (snes_spc7110.r4803 << 16));
|
||||
index = (snes_spc7110.r4804 << 2);
|
||||
length = (snes_spc7110.r4809 + (snes_spc7110.r480a << 8));
|
||||
//length = (snes_spc7110.r4809 + (snes_spc7110.r480a << 8));
|
||||
address = spc7110_datarom_addr(table + index);
|
||||
mode = (ROM[address + 0]);
|
||||
offset = (ROM[address + 1] << 16)
|
||||
|
@ -400,7 +400,7 @@ INLINE void zdrawgfxzoom32GP(
|
||||
int eax, ecx;
|
||||
int src_fx, src_fdx;
|
||||
int shdpen;
|
||||
UINT8 z8, db0, p8, db1;
|
||||
UINT8 z8 = 0, p8 = 0;
|
||||
UINT8 *ozbuf_ptr;
|
||||
UINT8 *szbuf_ptr;
|
||||
const pen_t *pal_base;
|
||||
@ -510,8 +510,8 @@ INLINE void zdrawgfxzoom32GP(
|
||||
|
||||
// adjust insertion points and pre-entry constants
|
||||
eax = (dst_y - dst_miny) * GX_ZBUFW + (dst_x - dst_minx) + dst_w;
|
||||
db0 = z8 = (UINT8)zcode;
|
||||
db1 = p8 = (UINT8)pri;
|
||||
// db0 = z8 = (UINT8)zcode;
|
||||
// db1 = p8 = (UINT8)pri;
|
||||
ozbuf_ptr += eax;
|
||||
szbuf_ptr += eax << 1;
|
||||
dst_ptr += dst_y * dst_pitch + dst_x + dst_w;
|
||||
|
@ -9013,7 +9013,7 @@ static void k001005_render_polygons( device_t *device )
|
||||
if (k001005->_3d_fifo[i] == 0x80000003)
|
||||
{
|
||||
poly_extra_data *extra = (poly_extra_data *)poly_get_extra_data(k001005->poly);
|
||||
poly_vertex v[4];
|
||||
// poly_vertex v[4];
|
||||
int r, g, b, a;
|
||||
UINT32 color;
|
||||
int index = i;
|
||||
@ -9029,10 +9029,11 @@ static void k001005_render_polygons( device_t *device )
|
||||
x |= ((x & 0x2000) ? 0xffffc000 : 0);
|
||||
y |= ((y & 0x1000) ? 0xffffe000 : 0);
|
||||
++index;
|
||||
|
||||
#if POLY_DEVICE
|
||||
v[j].x = ((float)(x) / 16.0f) + 256.0f;
|
||||
v[j].y = ((float)(-y) / 16.0f) + 192.0f;
|
||||
v[j].p[0] = 0; /* ??? */
|
||||
#endif
|
||||
}
|
||||
|
||||
++index;
|
||||
|
@ -1780,7 +1780,7 @@ static void
|
||||
BlitQuads( running_machine &machine, bitmap_t *bitmap, INT32 addr, float m[4][4], INT32 base )
|
||||
{
|
||||
namcos22_state *state = machine.driver_data<namcos22_state>();
|
||||
int numAdditionalNormals = 0;
|
||||
// int numAdditionalNormals = 0;
|
||||
int chunkLength = GetPolyData(state, addr++);
|
||||
int finish = addr + chunkLength;
|
||||
|
||||
@ -1857,7 +1857,7 @@ BlitQuads( running_machine &machine, bitmap_t *bitmap, INT32 addr, float m[4][4]
|
||||
000000 000000 007fff // normal vector
|
||||
000000 000000 007fff // normal vector
|
||||
*/
|
||||
numAdditionalNormals = GetPolyData(state, addr+2);
|
||||
// numAdditionalNormals = GetPolyData(state, addr+2);
|
||||
state->m_mSurfaceNormalFormat = GetPolyData(state, addr+3);
|
||||
state->m_mLitSurfaceCount = 0;
|
||||
state->m_mLitSurfaceIndex = 0;
|
||||
@ -2090,7 +2090,7 @@ SimulateSlaveDSP( running_machine &machine, bitmap_t *bitmap )
|
||||
|
||||
for(;;)
|
||||
{
|
||||
INT16 marker, next;
|
||||
INT16 next;
|
||||
state->m_mPrimitiveID = *pSource++;
|
||||
len = (INT16)*pSource++;
|
||||
|
||||
@ -2127,7 +2127,8 @@ SimulateSlaveDSP( running_machine &machine, bitmap_t *bitmap )
|
||||
|
||||
/* hackery! commands should be streamed, not parsed here */
|
||||
pSource += len;
|
||||
marker = (INT16)*pSource++; /* always 0xffff */
|
||||
// marker = (INT16)*pSource++; /* always 0xffff */
|
||||
pSource++;
|
||||
next = (INT16)*pSource++; /* link to next command */
|
||||
if( (next&0x7fff) != (pSource - (INT32 *)state->m_polygonram) )
|
||||
{ /* end of list */
|
||||
|
Loading…
Reference in New Issue
Block a user