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

digitall noreply at scummvm.org
Sun Mar 20 23:00:52 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:
eb418ae51e GLK: ALAN3: Fix Undefined Macro GCC Compiler Warning


Commit: eb418ae51e97666d0d78615a6104c614d5a1eba9
    https://github.com/scummvm/scummvm/commit/eb418ae51e97666d0d78615a6104c614d5a1eba9
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-20T22:59:34Z

Commit Message:
GLK: ALAN3: Fix Undefined Macro GCC Compiler Warning

This code for build numbering will not be used in any case and has
been implicitly defaulting to 0.

This would previously generate warnings when -Wundef is passed to
the GCC compiler.

Changed paths:
    engines/glk/alan3/utils.cpp


diff --git a/engines/glk/alan3/utils.cpp b/engines/glk/alan3/utils.cpp
index e614c71df2a..72a9e41a47a 100644
--- a/engines/glk/alan3/utils.cpp
+++ b/engines/glk/alan3/utils.cpp
@@ -67,11 +67,7 @@ void printVersion(int buildNumber) {
 
 /*======================================================================*/
 void usage(const char *programName) {
-#if (BUILD+0) != 0
-	printVersion(BUILD);
-#else
 	printVersion(0);
-#endif
 	printf("\n\nUsage:\n\n");
 	printf("    %s [<switches>] <adventure>\n\n", programName);
 	printf("where the possible optional switches are:\n");




More information about the Scummvm-git-logs mailing list