address compilation warnings from gcc
This commit is contained in:
@@ -1349,8 +1349,8 @@ struct obj *otmp;
|
|||||||
{
|
{
|
||||||
if (!otmp->oartifact)
|
if (!otmp->oartifact)
|
||||||
return ((long)objects[otmp->otyp].oc_cost);
|
return ((long)objects[otmp->otyp].oc_cost);
|
||||||
else if (artilist[otmp->oartifact].cost)
|
else if (artilist[(int) otmp->oartifact].cost)
|
||||||
return (artilist[otmp->oartifact].cost);
|
return (artilist[(int) otmp->oartifact].cost);
|
||||||
else
|
else
|
||||||
return (100L * (long)objects[otmp->otyp].oc_cost);
|
return (100L * (long)objects[otmp->otyp].oc_cost);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -391,7 +391,9 @@ static boolean initial, from_file;
|
|||||||
STATIC_DCL void FDECL(doset_add_menu, (winid,const char *,int));
|
STATIC_DCL void FDECL(doset_add_menu, (winid,const char *,int));
|
||||||
STATIC_DCL void FDECL(nmcpy, (char *, const char *, int));
|
STATIC_DCL void FDECL(nmcpy, (char *, const char *, int));
|
||||||
STATIC_DCL void FDECL(escapes, (const char *, char *));
|
STATIC_DCL void FDECL(escapes, (const char *, char *));
|
||||||
|
#if 0
|
||||||
STATIC_DCL int FDECL(boolopt_only_initial, (int));
|
STATIC_DCL int FDECL(boolopt_only_initial, (int));
|
||||||
|
#endif
|
||||||
STATIC_DCL void FDECL(rejectoption, (const char *));
|
STATIC_DCL void FDECL(rejectoption, (const char *));
|
||||||
STATIC_DCL void FDECL(badoption, (const char *));
|
STATIC_DCL void FDECL(badoption, (const char *));
|
||||||
STATIC_DCL char *FDECL(string_for_opt, (char *,BOOLEAN_P));
|
STATIC_DCL char *FDECL(string_for_opt, (char *,BOOLEAN_P));
|
||||||
|
|||||||
@@ -133,16 +133,15 @@ const char *mesg;
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*ARGSUSED*/
|
||||||
void
|
void
|
||||||
genl_preference_update(pref)
|
genl_preference_update(pref)
|
||||||
const char *pref;
|
const char *pref;
|
||||||
{
|
{
|
||||||
extern struct wc_Opt wc_options[]; /* in options.c */
|
|
||||||
/* window ports are expected to provide
|
/* window ports are expected to provide
|
||||||
their own preference update routine
|
their own preference update routine
|
||||||
for the preference capabilities that
|
for the preference capabilities that
|
||||||
they support.
|
they support.
|
||||||
Just return in this genl one. */
|
Just return in this genl one. */
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
/*windows.c*/
|
/*windows.c*/
|
||||||
|
|||||||
Reference in New Issue
Block a user