[Scummvm-git-logs] scummvm master -> cc6bdfa02766f8462ed2886b11cd17fa2f8aba2c

dreammaster noreply at scummvm.org
Tue Apr 21 12:16:11 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
cc6bdfa027 MADS: PHANTOM: Warning fixes


Commit: cc6bdfa02766f8462ed2886b11cd17fa2f8aba2c
    https://github.com/scummvm/scummvm/commit/cc6bdfa02766f8462ed2886b11cd17fa2f8aba2c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-04-21T22:15:56+10:00

Commit Message:
MADS: PHANTOM: Warning fixes

Changed paths:
    engines/mads/madsv2/phantom/main.cpp
    engines/mads/madsv2/phantom/menus.cpp


diff --git a/engines/mads/madsv2/phantom/main.cpp b/engines/mads/madsv2/phantom/main.cpp
index 5bd23a199b1..62ea6463add 100644
--- a/engines/mads/madsv2/phantom/main.cpp
+++ b/engines/mads/madsv2/phantom/main.cpp
@@ -152,8 +152,6 @@ static void game_main(int argc, const char **argv) {
 	int count;
 	int mads_mode;
 	const char *scan;
-	long mem_you_got;
-	long mem_required;
 
 	pack_enable_pfab_explode();
 
@@ -232,9 +230,6 @@ static void game_main(int argc, const char **argv) {
 #endif
 	himem_startup();
 
-	mem_required = 30L * 16384L;
-	mem_you_got = mem_required * 2;
-
 	himem_shutdown();
 
 	if (!mads_mode && (env_search_mode == ENV_SEARCH_MADS_PATH))
diff --git a/engines/mads/madsv2/phantom/menus.cpp b/engines/mads/madsv2/phantom/menus.cpp
index 6dfaefe8082..8a22cc3cc33 100644
--- a/engines/mads/madsv2/phantom/menus.cpp
+++ b/engines/mads/madsv2/phantom/menus.cpp
@@ -301,6 +301,7 @@ static void global_menu_save_restore(int save) {
 
 		case f4_key:
 			kernel.activate_menu = GAME_SCORE_MENU;
+			break;
 
 		case f5_key:
 			kernel.activate_menu = GAME_OPTIONS_MENU;
@@ -507,7 +508,6 @@ static void global_menu_options() {
 
 static void global_menu_difficulty() {
 	PopupItem *easy_item;
-	PopupItem *hard_item;
 	PopupItem *result;
 
 	popup_dialog_create(game_menu_popup, GAME_DIALOG_HEAP, 20);
@@ -521,7 +521,7 @@ static void global_menu_difficulty() {
 
 	popup_blank(SPACE_BETWEEN);
 
-	hard_item = popup_menu(menu_quote(quote_difficulty_item2),
+	(void)popup_menu(menu_quote(quote_difficulty_item2),
 		POPUP_CENTER, POPUP_FILL, MAIN_MENU_ITEM_WIDTH, 0,
 		0, 0, 0);
 




More information about the Scummvm-git-logs mailing list