Avoid compiler warnings

This commit is contained in:
Jeffrey Pfau 2014-07-25 03:45:54 -07:00
parent 888d037b3d
commit 103bef17c9
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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) {