]> granicus.if.org Git - nethack/commitdiff
compilation bits
authorcohrs <cohrs>
Sun, 21 Apr 2002 17:43:17 +0000 (17:43 +0000)
committercohrs <cohrs>
Sun, 21 Apr 2002 17:43:17 +0000 (17:43 +0000)
- remove an unused variable in use_pick_axe2
- wiz_debug_cmd needs to return an int like other extended commands

src/cmd.c
src/dig.c

index 9ed2088469042a69b0eda28df8fbde70b59966a3..b90f60f00633b7ad14eb9c9e97ec29197693afa2 100644 (file)
--- 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 */
index 9bd70d60e5e7b97112ac8827ae2e24a907e55be1..152071fd69068e146685d1841aaf874cdf2265a7 100644 (file)
--- 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 */