From f1615d83d76ededc3966635c9dc15e6ab79cc6d4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 8 Nov 2016 20:25:14 -0500 Subject: TITANIC: Fix compiler warnings --- engines/titanic/events.cpp | 1 - engines/titanic/room_flags.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/titanic/events.cpp b/engines/titanic/events.cpp index 89ad33881e..97f9a86eb3 100644 --- a/engines/titanic/events.cpp +++ b/engines/titanic/events.cpp @@ -138,7 +138,6 @@ void Events::sleep(uint time) { } bool Events::waitForPress(uint expiry) { - CGameManager *gameManager = g_vm->_window->_gameManager; uint32 delayEnd = g_system->getMillis() + expiry; CPressTarget pressTarget; addTarget(&pressTarget); diff --git a/engines/titanic/room_flags.cpp b/engines/titanic/room_flags.cpp index 75baf2c678..07303d8bfa 100644 --- a/engines/titanic/room_flags.cpp +++ b/engines/titanic/room_flags.cpp @@ -425,6 +425,9 @@ void CRoomFlags::changeClass(PassengerClass newClassNum) { case UNCHECKED: if (++floorNum > v11) floorNum = v11; + + default: + break; } // Set new floor and room -- cgit v1.2.3