From: Pasi Kallinen Date: Sat, 21 Nov 2015 21:50:11 +0000 (+0200) Subject: Pacify some clang compile warnings, pt 2 X-Git-Tag: NetHack-3.6.0_RC01~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08b041f15f65feb04afa194ea6e3ad335a5dddb7;p=nethack Pacify some clang compile warnings, pt 2 --- diff --git a/src/pager.c b/src/pager.c index ba34d2974..67214c6a2 100644 --- a/src/pager.c +++ b/src/pager.c @@ -18,6 +18,7 @@ STATIC_DCL void FDECL(checkfile, (char *, struct permonst *, BOOLEAN_P, BOOLEAN_P)); STATIC_DCL void FDECL(look_all, (BOOLEAN_P,BOOLEAN_P)); STATIC_DCL boolean FDECL(help_menu, (int *)); +STATIC_DCL void NDECL(docontact); #ifdef PORT_HELP extern void NDECL(port_help); #endif @@ -378,7 +379,7 @@ boolean user_typed_name, without_asking; dlb *fp; char buf[BUFSZ], newstr[BUFSZ]; char *ep, *dbase_str; - unsigned long txt_offset; + unsigned long txt_offset = 0L; int chk_skip; boolean found_in_file = FALSE, skipping_entry = FALSE; winid datawin = WIN_ERR; diff --git a/src/pickup.c b/src/pickup.c index bf655281d..86942372e 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -41,6 +41,7 @@ STATIC_DCL int FDECL(container_at, (int, int, BOOLEAN_P)); STATIC_DCL boolean FDECL(able_to_loot, (int, int, BOOLEAN_P)); STATIC_DCL boolean NDECL(reverse_loot); STATIC_DCL boolean FDECL(mon_beside, (int, int)); +STATIC_DCL int FDECL(do_loot_cont, (struct obj **)); STATIC_DCL void FDECL(tipcontainer, (struct obj *)); /* define for query_objlist() and autopickup() */ diff --git a/src/read.c b/src/read.c index 162bad878..37867ee58 100644 --- a/src/read.c +++ b/src/read.c @@ -18,6 +18,7 @@ static NEARDATA const char readable[] = { ALL_CLASSES, SCROLL_CLASS, static const char all_count[] = { ALLOW_COUNT, ALL_CLASSES, 0 }; STATIC_DCL boolean FDECL(learnscrolltyp, (SHORT_P)); +STATIC_DCL char * FDECL(erode_obj_text, (struct obj *, char *)); STATIC_DCL void NDECL(do_class_genocide); STATIC_DCL void FDECL(stripspe, (struct obj *)); STATIC_DCL void FDECL(p_glow1, (struct obj *));