all repos — mgba @ 4809e62d1860cc4abb719f95f11031935448d8b2

mGBA Game Boy Advance Emulator

GBA: Fix some warnings
Jeffrey Pfau jeffrey@endrift.com
Sat, 29 Aug 2015 00:03:09 -0700
commit

4809e62d1860cc4abb719f95f11031935448d8b2

parent

77ead17e290ce40fa7ef4f1d7a859e20d18fc3eb

2 files changed, 6 insertions(+), 6 deletions(-)

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

@@ -252,14 +252,14 @@ }

if (bytesRead < 0) { return false; } - while (isspace(cheat[i])) { + while (isspace((int) cheat[i])) { ++i; } switch (cheat[i]) { case '#': do { ++i; - } while (isspace(cheat[i])); + } while (isspace((int) cheat[i])); newSet = malloc(sizeof(*set)); GBACheatSetInit(newSet, &cheat[i]); newSet->enabled = !nextDisabled;

@@ -278,7 +278,7 @@ break;

case '!': do { ++i; - } while (isspace(cheat[i])); + } while (isspace((int) cheat[i])); if (strncasecmp(&cheat[i], "GSAv", 4) == 0 || strncasecmp(&cheat[i], "PARv", 4) == 0) { i += 4; gsaVersion = atoi(&cheat[i]);

@@ -367,14 +367,14 @@ line = hex32(line, &op1);

if (!line) { return false; } - while (isspace(line[0])) { + while (isspace((int) line[0])) { ++line; } line = hex16(line, &op2); if (!line) { return false; } - if (!line[0] || isspace(line[0])) { + if (!line[0] || isspace((int) line[0])) { return GBACheatAddCodeBreaker(cheats, op1, op2); } line = hex16(line, &op3);
M src/gba/context/context.csrc/gba/context/context.c

@@ -113,7 +113,7 @@ return true;

} bool GBAContextStart(struct GBAContext* context) { - struct GBAOptions opts = {}; + struct GBAOptions opts = { .bios = 0 }; if (context->renderer) { GBAVideoAssociateRenderer(&context->gba->video, context->renderer);