1
0
mirror of https://github.com/simh/simh.git synced 2026-04-15 16:11:13 +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

@@ -410,7 +410,7 @@ return SCPE_OK;
t_stat cdr_read_file (char *buf, int32 sz)
{
fgets (buf, sz, cdr_unit.fileref); /* rd bin/char card */
if (fgets (buf, sz, cdr_unit.fileref)) {}; /* rd bin/char card */
if (feof (cdr_unit.fileref)) /* eof? */
return STOP_NOCD;
if (ferror (cdr_unit.fileref)) { /* error? */