scsp.cpp: Fixed a possibly-uninitialized warning with GCC 8.2.1, nw

This commit is contained in:
mooglyguy 2018-12-02 19:03:36 +01:00
parent 70693512bf
commit 2e343a451b

View File

@ -1127,7 +1127,7 @@ inline int32_t scsp_device::UpdateSlot(SCSP_SLOT *slot)
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;
uint32_t addr1, addr2, addr_select; // current and next sample addresses
uint32_t *addr[2] = {&addr1, &addr2}; // used for linear interpolation