Silence a number of switch warnings in vga_xga
In total, 28 warnings are removed by adding these few default cases.
This commit is contained in:
parent
64671a888c
commit
f105697165
1 changed files with 4 additions and 0 deletions
|
@ -987,6 +987,8 @@ void XGA_SetDualReg(Bit32u& reg, Bitu val) {
|
|||
reg = (reg&0xffff0000)|(val&0x0000ffff);
|
||||
xga.control1 ^= 0x10;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1001,6 +1003,8 @@ Bitu XGA_GetDualReg(Bit32u reg) {
|
|||
xga.control1 ^= 0x10;
|
||||
if (xga.control1 & 0x10) return reg&0x0000ffff;
|
||||
else return reg>>16;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue