1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

I1401, I1620, I7094, S3: Silence GCC optimizer warnings about unused function results

This commit is contained in:
Mark Pizzolato
2019-12-30 17:43:35 -08:00
parent b18912cda8
commit 3dc0d24ded
4 changed files with 5 additions and 5 deletions

View File

@@ -304,7 +304,7 @@ if (mod) {
rbuf[i] = fgetc(cdr_unit.fileref); /* Read EBCDIC */
}
} else {
fgets (rbuf, CBUFSIZE, cdr_unit.fileref); /* read Ascii */
if (fgets (rbuf, CBUFSIZE, cdr_unit.fileref)) {}; /* read Ascii */
}
if (feof (cdr_unit.fileref)) { /* eof? */
notready = 1;