all repos — mgba @ e89837909b3bfc8f1bd4d6740f5f25603611e654

mGBA Game Boy Advance Emulator

GUI: Fix some long-standing warnings
Jeffrey Pfau jeffrey@endrift.com
Sun, 20 Dec 2015 21:58:00 -0800
commit

e89837909b3bfc8f1bd4d6740f5f25603611e654

parent

d5da0ff31b21574291b3fcf716d3015e96e5cfda

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

jump to
M src/util/gui/file-select.csrc/util/gui/file-select.c

@@ -24,7 +24,7 @@ static void _cleanFiles(struct GUIMenuItemList* currentFiles) {

size_t size = GUIMenuItemListSize(currentFiles); size_t i; for (i = 1; i < size; ++i) { - free(GUIMenuItemListGetPointer(currentFiles, i)->title); + free((char*) GUIMenuItemListGetPointer(currentFiles, i)->title); } GUIMenuItemListClear(currentFiles); }

@@ -126,7 +126,7 @@ if (vf) {

if (filter(vf)) { ++item; } else { - free(GUIMenuItemListGetPointer(currentFiles, item)->title); + free((char*) GUIMenuItemListGetPointer(currentFiles, item)->title); GUIMenuItemListShift(currentFiles, item, 1); } vf->close(vf);