From f897def64d412db847b3087f6eaf4e59fdc61ea2 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Sun, 23 Nov 2008 11:49:58 +0000 Subject: Eliminate some warnings from NDS specific code. svn-id: r35157 --- backends/platform/ds/arm9/source/scummconsole.c | 7 ++++++- backends/platform/ds/arm9/source/touchkeyboard.cpp | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'backends/platform') diff --git a/backends/platform/ds/arm9/source/scummconsole.c b/backends/platform/ds/arm9/source/scummconsole.c index f4ae0bca8b..aafa0f7744 100644 --- a/backends/platform/ds/arm9/source/scummconsole.c +++ b/backends/platform/ds/arm9/source/scummconsole.c @@ -498,7 +498,12 @@ int consolePrintf(const char* s, ...) break; case 'f': case 'F': - printF(w,va_arg(argp, double)); +/* Need to undo our 'all doubles are floats' definition */ +#define TEMP_DEF double +#undef double + printF(w,va_arg(argp, double)); +#define double TEMP_DEF +#undef TEMP_DEF s++; break; case 's': diff --git a/backends/platform/ds/arm9/source/touchkeyboard.cpp b/backends/platform/ds/arm9/source/touchkeyboard.cpp index 17c6a5bc3d..81f0e40010 100644 --- a/backends/platform/ds/arm9/source/touchkeyboard.cpp +++ b/backends/platform/ds/arm9/source/touchkeyboard.cpp @@ -169,7 +169,7 @@ void restoreVRAM(int tileBase, int mapBase, u16* saveSpace) { } void drawKeyboard(int tileBase, int mapBase, u16* saveSpace) { - int keyboardDataSize = 4736 * 2; + /* int keyboardDataSize = 4736 * 2; */ for (int r = 0; r < 32 * 32; r++) { // *saveSpace++ = ((u16 *) SCREEN_BASE_BLOCK_SUB(mapBase))[r]; @@ -263,7 +263,7 @@ void drawAutoComplete() { int y = 12 + (r % 6) * 2; int x = 0 + ((r / 6) * 16); - for (int p = 0; p < strlen(autoCompleteWord[r]); p++) { + for (int p = 0; p < (int)strlen(autoCompleteWord[r]); p++) { char c = autoCompleteWord[r][p]; int tile = c - 33 + (KEYBOARD_DATA_SIZE / 32); @@ -317,7 +317,7 @@ void clearAutoComplete() { void typeCompletion(int current) { Common::Event event; - OSystem_DS* system = OSystem_DS::instance(); + /* OSystem_DS* system = OSystem_DS::instance(); */ strcat(autoCompleteBuffer, &autoCompleteWord[current][charactersEntered]); strcat(autoCompleteBuffer, " "); @@ -361,7 +361,7 @@ void updateTypeEvents() event.type = Common::EVENT_KEYUP; system->addEvent(event); - for (int r = 0; r < strlen(autoCompleteBuffer); r++) + for (int r = 0; r < (int)strlen(autoCompleteBuffer); r++) { autoCompleteBuffer[r] = autoCompleteBuffer[r + 1]; } -- cgit v1.2.3