From 103bef17c93ee88a302b6eb857877eef5fe2e86d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 25 Jul 2014 03:45:54 -0700 Subject: [PATCH] Avoid compiler warnings --- src/gba/gba.c | 1 + src/util/vfs/vfs-zip.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/gba/gba.c b/src/gba/gba.c index 0a6d982ff..af374b3d1 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -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; diff --git a/src/util/vfs/vfs-zip.c b/src/util/vfs/vfs-zip.c index 2dbdaa1bc..0a5d34406 100644 --- a/src/util/vfs/vfs-zip.c +++ b/src/util/vfs/vfs-zip.c @@ -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) {