summaryrefslogtreecommitdiffstats
path: root/rogue
diff options
context:
space:
mode:
authoris <is@NetBSD.org>1997-10-15 09:27:06 +0000
committeris <is@NetBSD.org>1997-10-15 09:27:06 +0000
commit4ebd4c6950f1e47b17ac791fb98cd03853714dda (patch)
tree67e70ad2f8963baa2f5e082f67ac77c70ec9fb5e /rogue
parenteb97288b64a4f39e9d0b328aa16a6fd4c657c0e0 (diff)
downloadbsdgames-darwin-4ebd4c6950f1e47b17ac791fb98cd03853714dda.tar.gz
bsdgames-darwin-4ebd4c6950f1e47b17ac791fb98cd03853714dda.tar.zst
bsdgames-darwin-4ebd4c6950f1e47b17ac791fb98cd03853714dda.zip
make gcc happy on Sparc
Diffstat (limited to 'rogue')
-rw-r--r--rogue/object.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rogue/object.c b/rogue/object.c
index c6a493e4..627216f7 100644
--- a/rogue/object.c
+++ b/rogue/object.c
@@ -1,4 +1,4 @@
-/* $NetBSD: object.c,v 1.4 1997/10/12 11:45:34 lukem Exp $ */
+/* $NetBSD: object.c,v 1.5 1997/10/15 09:27:06 is Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)object.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: object.c,v 1.4 1997/10/12 11:45:34 lukem Exp $");
+__RCSID("$NetBSD: object.c,v 1.5 1997/10/15 09:27:06 is Exp $");
#endif
#endif /* not lint */
@@ -504,6 +504,8 @@ gr_weapon(obj, assign_wk)
short i;
short blessing, increment;
+ increment = 0; /* XXX make gcc happy */
+
obj->what_is = WEAPON;
if (assign_wk) {
obj->which_kind = get_rand(0, (WEAPONS - 1));