IopHwRead: Fix Wmaybe-uninitialized warning.

This commit is contained in:
lightningterror committed 2022-11-19 19:28:52 +01:00
1 parent 93b24f98a6
commit bfcd5c84ca
1 file changed
+2 -2
+2 -2
View File
@@ -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):