mirror of
https://github.com/holub/mame
synced 2025-05-03 13:06:47 +03:00
scsp.cpp: Fixed a possibly-uninitialized warning with GCC 8.2.1, nw
This commit is contained in:
parent
70693512bf
commit
2e343a451b
@ -1127,7 +1127,7 @@ inline int32_t scsp_device::UpdateSlot(SCSP_SLOT *slot)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t sample;
|
int32_t sample = 0; // NB: Shouldn't be necessary, but GCC 8.2.1 claims otherwise.
|
||||||
int step = slot->step;
|
int step = slot->step;
|
||||||
uint32_t addr1, addr2, addr_select; // current and next sample addresses
|
uint32_t addr1, addr2, addr_select; // current and next sample addresses
|
||||||
uint32_t *addr[2] = {&addr1, &addr2}; // used for linear interpolation
|
uint32_t *addr[2] = {&addr1, &addr2}; // used for linear interpolation
|
||||||
|
Loading…
Reference in New Issue
Block a user