]> granicus.if.org Git - nethack/commitdiff
Pacify some clang compile warnings, pt 2
authorPasi Kallinen <paxed@alt.org>
Sat, 21 Nov 2015 21:50:11 +0000 (23:50 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 21 Nov 2015 21:50:11 +0000 (23:50 +0200)
src/pager.c
src/pickup.c
src/read.c

index ba34d297451a9247f3ee0e28fe66fe2ea99cf532..67214c6a20a3463bd944ad4293adc086974dc498 100644 (file)
@@ -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;
index bf655281d30784bb18bed5c55a0b2a4e27fffe9c..86942372e1a993d07077c46466c6702535049a8d 100644 (file)
@@ -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() */
index 162bad8788229ea6a44b4c7e6fa380de7426e1c4..37867ee58a1c4060a313fbdc0e41865805db920a 100644 (file)
@@ -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 *));