Fix some warnings on the unconditionals branch.

This commit is contained in:
Sean Hunt
2015-03-17 18:46:48 +02:00
committed by Pasi Kallinen
parent 5fb3fea9c6
commit 07da4a740e
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1597,7 +1597,7 @@ start_eating(otmp) /* called as you start to eat */
{ {
const char *old_nomovemsg, *save_nomovemsg; const char *old_nomovemsg, *save_nomovemsg;
debugpline("start_eating: %lx (victual = %lx)", otmp, context.victual.piece); debugpline("start_eating: %p (victual = %p)", otmp, context.victual.piece);
debugpline("reqtime = %d", context.victual.reqtime); debugpline("reqtime = %d", context.victual.reqtime);
debugpline("(original reqtime = %d)", objects[otmp->otyp].oc_delay); debugpline("(original reqtime = %d)", objects[otmp->otyp].oc_delay);
debugpline("nmod = %d", context.victual.nmod); debugpline("nmod = %d", context.victual.nmod);
+6
View File
@@ -12,6 +12,10 @@
#define QTEXT_FILE "quest.dat" #define QTEXT_FILE "quest.dat"
#ifdef TTY_GRAPHICS
#include "wintty.h"
#endif
/* from sp_lev.c, for deliver_splev_message() */ /* from sp_lev.c, for deliver_splev_message() */
extern char *lev_message; extern char *lev_message;
@@ -49,7 +53,9 @@ dump_qtlist() /* dump the character msg list to check appearance */
for (msg = qt_list.chrole; msg->msgnum > 0; msg++) { for (msg = qt_list.chrole; msg->msgnum > 0; msg++) {
pline("msgnum %d: delivery %c", pline("msgnum %d: delivery %c",
msg->msgnum, msg->delivery); msg->msgnum, msg->delivery);
#ifdef TTY_GRAPHICS
more(); more();
#endif
(void) dlb_fseek(msg_file, msg->offset, SEEK_SET); (void) dlb_fseek(msg_file, msg->offset, SEEK_SET);
deliver_by_window(msg, NHW_TEXT); deliver_by_window(msg, NHW_TEXT);
} }
+2 -2
View File
@@ -2256,7 +2256,7 @@ put_qt_hdrs()
qt_hdr.n_hdr, ofp); qt_hdr.n_hdr, ofp);
#ifdef DEBUG #ifdef DEBUG
for(i = 0; i < qt_hdr.n_hdr; i++) for(i = 0; i < qt_hdr.n_hdr; i++)
Fprintf(stderr, "%c @ %ld, ", qt_hdr.id[i], qt_hdr.offset[i]); Fprintf(stderr, "%s @ %ld, ", qt_hdr.id[i], qt_hdr.offset[i]);
Fprintf(stderr, "\n"); Fprintf(stderr, "\n");
#endif #endif
@@ -2267,7 +2267,7 @@ put_qt_hdrs()
for(i = 0; i < qt_hdr.n_hdr; i++) { for(i = 0; i < qt_hdr.n_hdr; i++) {
#ifdef DEBUG #ifdef DEBUG
Fprintf(stderr, "%ld: %c header info.\n", ftell(ofp), Fprintf(stderr, "%ld: %s header info.\n", ftell(ofp),
qt_hdr.id[i]); qt_hdr.id[i]);
#endif #endif
(void) fwrite((genericptr_t)&(msg_hdr[i].n_msg), sizeof(int), (void) fwrite((genericptr_t)&(msg_hdr[i].n_msg), sizeof(int),