mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
-Werror cleanup, don't try to free const variables...
svn-id: r9808
This commit is contained in:
parent
ce42f4d3dd
commit
a51be5d39e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user