From 2e343a451bb94b2e526386a68f5e8e16d59593e5 Mon Sep 17 00:00:00 2001 From: mooglyguy Date: Sun, 2 Dec 2018 19:03:36 +0100 Subject: scsp.cpp: Fixed a possibly-uninitialized warning with GCC 8.2.1, nw --- src/devices/sound/scsp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/sound/scsp.cpp b/src/devices/sound/scsp.cpp index 3918d20a7b0..4a38a0fb558 100644 --- a/src/devices/sound/scsp.cpp +++ b/src/devices/sound/scsp.cpp @@ -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 -- cgit v1.2.3