From a51be5d39e0d69b835f476874c63433b85274baa Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 21 Aug 2003 14:58:47 +0000 Subject: [PATCH] -Werror cleanup, don't try to free const variables... svn-id: r9808 --- common/main.cpp | 1 - sword2/driver/_mouse.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/main.cpp b/common/main.cpp index 2941f2cf794..7a847f57709 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 97dbd1ca7e3..029e49beea0 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; }