]> granicus.if.org Git - nethack/commitdiff
address compilation warnings from gcc
authorcohrs <cohrs>
Sun, 3 Feb 2002 07:15:26 +0000 (07:15 +0000)
committercohrs <cohrs>
Sun, 3 Feb 2002 07:15:26 +0000 (07:15 +0000)
src/artifact.c
src/options.c
src/windows.c

index 3c21c8718f69324ae1b7b18818bb623d346ff0a2..e867cc10b8ef0c184d0a2f134648f2a207f0b24f 100644 (file)
@@ -1349,8 +1349,8 @@ struct obj *otmp;
 {
        if (!otmp->oartifact)
            return ((long)objects[otmp->otyp].oc_cost);
-       else if (artilist[otmp->oartifact].cost)
-           return (artilist[otmp->oartifact].cost);
+       else if (artilist[(int) otmp->oartifact].cost)
+           return (artilist[(int) otmp->oartifact].cost);
        else
            return (100L * (long)objects[otmp->otyp].oc_cost);
 }
index 8c90470752c9dfd5d013b43d0cc7fc1dff79800d..078fff6d60315323a2e27bf88f2314f8186996c1 100644 (file)
@@ -391,7 +391,9 @@ static boolean initial, from_file;
 STATIC_DCL void FDECL(doset_add_menu, (winid,const char *,int));
 STATIC_DCL void FDECL(nmcpy, (char *, const char *, int));
 STATIC_DCL void FDECL(escapes, (const char *, char *));
+#if 0
 STATIC_DCL int FDECL(boolopt_only_initial, (int));
+#endif
 STATIC_DCL void FDECL(rejectoption, (const char *));
 STATIC_DCL void FDECL(badoption, (const char *));
 STATIC_DCL char *FDECL(string_for_opt, (char *,BOOLEAN_P));
index 6da8ecb5c55b4e8e64b9214eec097f5f36387fea..c48b28d13990e6a1a34f4caacbae7d7cb35ef414 100644 (file)
@@ -133,16 +133,15 @@ const char *mesg;
     return 0;
 }
 
+/*ARGSUSED*/
 void
 genl_preference_update(pref)
 const char *pref;
 {
-       extern struct wc_Opt wc_options[];      /* in options.c */
        /* window ports are expected to provide
           their own preference update routine
           for the preference capabilities that
           they support.
           Just return in this genl one. */
-       return;
 }
 /*windows.c*/