]> granicus.if.org Git - nethack/commitdiff
gcc compliation warnings
authorcohrs <cohrs>
Thu, 22 Jan 2004 23:06:21 +0000 (23:06 +0000)
committercohrs <cohrs>
Thu, 22 Jan 2004 23:06:21 +0000 (23:06 +0000)
Since I last tried to compile, a couple gcc warnings slipped into the code.

src/botl.c
src/cmd.c

index 17ec579c61ee85a31bff69fe56140a412d38db3e..3b97a4b5058173710f7e168920defd9a4c55e0f8 100644 (file)
@@ -30,7 +30,6 @@ STATIC_DCL char *FDECL(anything_to_s, (char *, anything *, int));
 STATIC_DCL void FDECL(s_to_anything, (anything *, char *, int));
 STATIC_OVL int FDECL(percentage, (struct istat_s *, struct istat_s *));
 STATIC_OVL int FDECL(compare_blstats, (struct istat_s *, struct istat_s *));
-STATIC_OVL int FDECL(de_pointer_type, (int));
 # ifdef STATUS_HILITES
 STATIC_DCL boolean FDECL(assign_hilite, (char *, char *, char *, char *));
 STATIC_DCL char *FDECL(clridx_to_s, (char *, int));
@@ -486,7 +485,7 @@ struct istat_s *bl1, *bl2;
        if ((!bl1->a.a_void || !bl2->a.a_void) &&
            (anytype == ANY_IPTR || anytype == ANY_UPTR ||
             anytype == ANY_LPTR || anytype == ANY_ULPTR)) {
-               panic("compare_blstat: invalid pointer %ls, %ld",
+               panic("compare_blstat: invalid pointer %ld, %ld",
                        (long)bl1->a.a_void, (long)bl2->a.a_void);
        }
 
@@ -1142,18 +1141,6 @@ int idx;
        return buf;
 }
 
-STATIC_OVL int
-de_pointer_type(anytype)
-int anytype;
-{
-       int dt = anytype;
-       if (anytype == ANY_IPTR)        dt = ANY_INT;
-       else if (anytype == ANY_LPTR)   dt = ANY_LONG;
-       else if (anytype == ANY_UPTR)   dt = ANY_UINT;
-       else if (anytype == ANY_ULPTR)  dt = ANY_ULONG;
-       return dt;
-}
-
 boolean
 status_hilite_menu()
 {
index 84f3e186092a00273c433bac057b96adbb28cdca..39ab19c0bed78036fb8a15f20b1750d944195eb1 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -756,7 +756,6 @@ STATIC_PTR int
 wiz_smell()
 {
        char    out_str[BUFSZ];
-       const char *firstmatch = 0;
        struct permonst *pm = 0;
        int     ans = 0;
        int     mndx;           /* monster index */