From f057848eeab8a6089c39faff1fc204db54e730df Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 3 Feb 2002 07:15:26 +0000 Subject: [PATCH] address compilation warnings from gcc --- src/artifact.c | 4 ++-- src/options.c | 2 ++ src/windows.c | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/artifact.c b/src/artifact.c index 3c21c8718..e867cc10b 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -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); } diff --git a/src/options.c b/src/options.c index 8c9047075..078fff6d6 100644 --- a/src/options.c +++ b/src/options.c @@ -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)); diff --git a/src/windows.c b/src/windows.c index 6da8ecb5c..c48b28d13 100644 --- a/src/windows.c +++ b/src/windows.c @@ -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*/ -- 2.50.1