all repos — mgba @ 103bef17c93ee88a302b6eb857877eef5fe2e86d

mGBA Game Boy Advance Emulator

Avoid compiler warnings
Jeffrey Pfau jeffrey@endrift.com
Fri, 25 Jul 2014 03:45:54 -0700
commit

103bef17c93ee88a302b6eb857877eef5fe2e86d

parent

888d037b3d6103c2b13e17ee87659f75317385c2

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gba/gba.csrc/gba/gba.c

@@ -580,6 +580,7 @@ }

enum GBALogLevel gbaLevel; switch (level) { + default: // Avoids compiler warning case DEBUGGER_LOG_DEBUG: gbaLevel = GBA_LOG_DEBUG; break;
M src/util/vfs/vfs-zip.csrc/util/vfs/vfs-zip.c

@@ -104,6 +104,8 @@ return -1;

} position = vfz->fileSize + offset; break; + default: + return -1; } if (position <= vfz->offset) {