mirror of https://github.com/mgba-emu/mgba.git
Avoid compiler warnings
This commit is contained in:
parent
888d037b3d
commit
103bef17c9
|
@ -580,6 +580,7 @@ void GBADebuggerLogShim(struct ARMDebugger* debugger, enum DebuggerLogLevel leve
|
|||
|
||||
enum GBALogLevel gbaLevel;
|
||||
switch (level) {
|
||||
default: // Avoids compiler warning
|
||||
case DEBUGGER_LOG_DEBUG:
|
||||
gbaLevel = GBA_LOG_DEBUG;
|
||||
break;
|
||||
|
|
|
@ -104,6 +104,8 @@ off_t _vfzSeek(struct VFile* vf, off_t offset, int whence) {
|
|||
}
|
||||
position = vfz->fileSize + offset;
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (position <= vfz->offset) {
|
||||
|
|
Loading…
Reference in New Issue