Subject: bin/5832: [PATCH] robots does not build with -DFANCY
To: None <gnats-bugs@gnats.netbsd.org>
From: Joseph Myers <jsm@octomino.demon.co.uk>
List: netbsd-bugs
Date: 07/24/1998 14:40:54
>Number:         5832
>Category:       bin
>Synopsis:       [PATCH] robots does not build with -DFANCY
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 24 10:05:03 1998
>Last-Modified:
>Originator:     Joseph Samuel Myers
>Organization:
Trinity College, University of Cambridge, UK
>Release:        NetBSD-current of 1998-07-11
>Environment:
	
[
System: Linux octomino 2.0.35 #1 Tue Jul 14 19:09:50 UTC 1998 i586 unknown
Architecture: i586
]
>Description:

As a result of warnings cleanup some time ago, the robots game does
not build with -DFANCY (which is used by the Linux port).  The patch
below fixes this.

>How-To-Repeat:

Try to build robots with -DFANCY.

>Fix:

--- robots/move.c	Mon Oct 13 11:26:37 1997
+++ robots+/move.c	Fri Jul 24 13:58:36 1998
@@ -55,6 +55,10 @@
 {
 	int		c;
 
+#ifdef FANCY
+	int		lastmove;
+#endif
+
 	if (Waiting)
 		return;
 
@@ -64,7 +68,8 @@
 			lastmove = *Next_move;
 		else
 			lastmove = -1;	/* flag for "first time in" */
-	}
+	} else
+		lastmove = 0; /* Shut up gcc */
 #endif
 	for (;;) {
 		if (Teleport && must_telep())
>Audit-Trail:
>Unformatted: