From 5bc5910ed853558c70f0af378ce57556f6589419 Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 21 Apr 2002 17:43:17 +0000 Subject: [PATCH] compilation bits - remove an unused variable in use_pick_axe2 - wiz_debug_cmd needs to return an int like other extended commands --- src/cmd.c | 2 +- src/dig.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index 9ed208846..b90f60f00 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -22,7 +22,7 @@ * module you are trying to debug) or things are going to get rather * hard to link :-) */ -extern void NDECL(wiz_debug_cmd); +extern int NDECL(wiz_debug_cmd); #endif #ifdef DUMB /* stuff commented out in extern.h, but needed here */ diff --git a/src/dig.c b/src/dig.c index 9bd70d60e..152071fd6 100644 --- a/src/dig.c +++ b/src/dig.c @@ -851,7 +851,6 @@ struct obj *obj; register struct rm *lev; int dig_target; boolean ispick = is_pick(obj); - const char *verb = ispick ? "dig" : "chop"; const char *verbing = ispick ? "digging" : "chopping"; if (u.uswallow && attack(u.ustuck)) { @@ -1516,7 +1515,7 @@ struct obj *otmp; #endif #ifdef DEBUG -void +int wiz_debug_cmd() /* in this case, bury everything at your loc and around */ { int x, y; @@ -1524,6 +1523,7 @@ wiz_debug_cmd() /* in this case, bury everything at your loc and around */ for (x = u.ux - 1; x <= u.ux + 1; x++) for (y = u.uy - 1; y <= u.uy + 1; y++) if (isok(x,y)) bury_objs(x,y); + return 0; } #endif /* DEBUG */ -- 2.40.0