aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9/source
diff options
context:
space:
mode:
authorRobin Watts2008-11-23 11:49:58 +0000
committerRobin Watts2008-11-23 11:49:58 +0000
commitf897def64d412db847b3087f6eaf4e59fdc61ea2 (patch)
tree18aadfeb0bdae39c19e77d6ad6fa12d7e162e10a /backends/platform/ds/arm9/source
parentfc507e98748681761e5d31bab8b4c13210b74a11 (diff)
downloadscummvm-rg350-f897def64d412db847b3087f6eaf4e59fdc61ea2.tar.gz
scummvm-rg350-f897def64d412db847b3087f6eaf4e59fdc61ea2.tar.bz2
scummvm-rg350-f897def64d412db847b3087f6eaf4e59fdc61ea2.zip
Eliminate some warnings from NDS specific code.
svn-id: r35157
Diffstat (limited to 'backends/platform/ds/arm9/source')
-rw-r--r--backends/platform/ds/arm9/source/scummconsole.c7
-rw-r--r--backends/platform/ds/arm9/source/touchkeyboard.cpp8
2 files changed, 10 insertions, 5 deletions
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];
}