From 4d9c5a57b2a16c3c4bc54ab3f897f79101337eb5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 14 Sep 2010 21:54:31 +0000 Subject: [PATCH 1/1] Silence some compile warnings. --- src/io.c | 8 ++++---- src/sst.c | 2 +- src/sst.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/io.c b/src/io.c index 416649f..fa028f5 100644 --- a/src/io.c +++ b/src/io.c @@ -209,12 +209,12 @@ void cgetline(char *line, int max) wrefresh(curwnd); } else { if (replayfp && !feof(replayfp)) - fgets(line, max, replayfp); + (void)fgets(line, max, replayfp); else - fgets(line, max, stdin); + (void)fgets(line, max, stdin); } if (logfp) - fputs(line, logfp); + (void)fputs(line, logfp); line[strlen(line)-1] = '\0'; } @@ -390,7 +390,7 @@ void warble(void) void tracktorpedo(coord w, int l, int i, int n, int iquad) /* torpedo-track animation */ { - if (!game.options & OPTION_CURSES) { + if (!(game.options & OPTION_CURSES)) { if (l == 1) { if (n != 1) { skip(1); diff --git a/src/sst.c b/src/sst.c index 8739ab8..c9bf9f4 100644 --- a/src/sst.c +++ b/src/sst.c @@ -184,7 +184,7 @@ bool iqhere, iqengry; int iscore, iskill; // Common PLAQ double aaitem; double perdate; -char citem[10]; +char citem[12]; int seed; // the random-number seed bool idebug; // debug mode FILE *logfp, *replayfp; diff --git a/src/sst.h b/src/sst.h index c8515ef..dce01e0 100644 --- a/src/sst.h +++ b/src/sst.h @@ -306,7 +306,7 @@ extern char *systnames[NINHAB]; extern int iscore, iskill; // Common PLAQ extern double perdate; extern double aaitem; -extern char citem[10]; +extern char citem[12]; extern int seed; extern bool idebug; extern FILE *logfp, *replayfp; -- 2.31.1