mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 02:00:15 +01:00
IopHwRead: Fix Wmaybe-uninitialized warning.
This commit is contained in:
1 parent
93b24f98a6
commit
bfcd5c84ca
1 file changed
+2
-2
@@ -46,9 +46,9 @@ mem8_t iopHwRead8_Page1( u32 addr )
|
||||
// all addresses are assumed to be prefixed with 0x1f801xxx:
|
||||
pxAssume( (addr >> 12) == 0x1f801 );
|
||||
|
||||
u32 masked_addr = addr & 0x0fff;
|
||||
const u32 masked_addr = addr & 0x0fff;
|
||||
|
||||
mem8_t ret; // using a return var can be helpful in debugging.
|
||||
mem8_t ret = 0; // using a return var can be helpful in debugging.
|
||||
switch( masked_addr )
|
||||
{
|
||||
case (HW_SIO_DATA & 0x0fff):
|
||||
|
||||
Reference in new issue
Block a user