]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
Silence compiler warning in get_long_cache_040
authorThomas Huth <huth@tuxfamily.org>
Mon, 21 May 2018 05:48:38 +0000 (07:48 +0200)
committerThomas Huth <huth@tuxfamily.org>
Mon, 21 May 2018 06:04:38 +0000 (08:04 +0200)
commit80d773a0883b54c135ee71c767d456c2b8c74258
treed1d91d6b4e70ca35926a905e8791fae3be6e3710
parent137dcb36dbcce15805180dfa534551cf47563828
Silence compiler warning in get_long_cache_040

GCC with -O1 and Clang complain that 'v' may be used uninitialized in the
function get_long_cache_040(). The warning is wrong since all cases are
handled, so that v can never be used uninitialized here. But the last
check "if (offset == 14)" is redundant here anyway, so let's simply turn
this into an unconditional else-statement instead - which then also makes
the compilers happy.
newcpu.cpp