[Scummvm-git-logs] scummvm master -> 89f2497e099ea6827e5facf7e159bd36233e801c

digitall noreply at scummvm.org
Mon Mar 21 11:29:04 UTC 2022


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

Summary:
89f2497e09 AGS: Remove Set But Unused Variable From Main Code


Commit: 89f2497e099ea6827e5facf7e159bd36233e801c
    https://github.com/scummvm/scummvm/commit/89f2497e099ea6827e5facf7e159bd36233e801c
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-21T11:28:05Z

Commit Message:
AGS: Remove Set But Unused Variable From Main Code

This generates a GCC Compiler Warning from -Wunused-but-set-variable.

Changed paths:
    engines/ags/engine/main/main.cpp


diff --git a/engines/ags/engine/main/main.cpp b/engines/ags/engine/main/main.cpp
index f349ffc4257..79af9863c73 100644
--- a/engines/ags/engine/main/main.cpp
+++ b/engines/ags/engine/main/main.cpp
@@ -180,7 +180,6 @@ void main_print_help() {
 }
 
 int main_process_cmdline(ConfigTree &cfg, int argc, const char *argv[]) {
-	int datafile_argv = 0;
 	for (int ee = 1; ee < argc; ++ee) {
 		const char *arg = argv[ee];
 		//
@@ -275,10 +274,6 @@ int main_process_cmdline(ConfigTree &cfg, int argc, const char *argv[]) {
 			else
 				cfg["log"][logarg] = "";
 		}
-		//
-		// Special case: data file location
-		//
-		else if (arg[0] != '-') datafile_argv = ee;
 	}
 
 	// assign standard path (defined in their own platform implementation)




More information about the Scummvm-git-logs mailing list