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.
This commit is contained in:
D G Turner 2022-03-20 22:59:34 +00:00
parent a1de9a95c6
commit eb418ae51e

View File

@ -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");