address compilation warnings from gcc

This commit is contained in:
cohrs
2002-02-03 07:15:26 +00:00
parent cb6a93641b
commit f057848eea
3 changed files with 5 additions and 4 deletions

View 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);
}

View 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));

View 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*/