aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2003-08-21 14:58:47 +0000
committerJonathan Gray2003-08-21 14:58:47 +0000
commita51be5d39e0d69b835f476874c63433b85274baa (patch)
tree13d64ad2da6671018507692360df5194703f9703
parentce42f4d3dd461ced69470ea70e4f840c8abfb246 (diff)
downloadscummvm-rg350-a51be5d39e0d69b835f476874c63433b85274baa.tar.gz
scummvm-rg350-a51be5d39e0d69b835f476874c63433b85274baa.tar.bz2
scummvm-rg350-a51be5d39e0d69b835f476874c63433b85274baa.zip
-Werror cleanup, don't try to free const variables...
svn-id: r9808
-rw-r--r--common/main.cpp1
-rw-r--r--sword2/driver/_mouse.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/common/main.cpp b/common/main.cpp
index 2941f2cf79..7a847f5770 100644
--- a/common/main.cpp
+++ b/common/main.cpp
@@ -238,7 +238,6 @@ int main(int argc, char *argv[]) {
// ...and quit (the return 0 should never be reached)
system->quit();
delete system;
- free((void *)version_settings); // allocated in GameDetector
return 0;
}
diff --git a/sword2/driver/_mouse.cpp b/sword2/driver/_mouse.cpp
index 97dbd1ca7e..029e49beea 100644
--- a/sword2/driver/_mouse.cpp
+++ b/sword2/driver/_mouse.cpp
@@ -295,7 +295,7 @@ void DrawMouse(void) {
mouse_width += deltaX;
mouse_height += deltaY;
- if (mouse_width * mouse_height > sizeof(_mouseData)) {
+ if ((uint32)(mouse_width * mouse_height) > sizeof(_mouseData)) {
warning("Mouse cursor too large");
return;
}