mirror of
https://github.com/simh/simh.git
synced 2026-04-13 23:44:44 +00:00
I1401, I1620, I7094, S3: Silence GCC optimizer warnings about unused function results
This commit is contained in:
@@ -345,7 +345,7 @@ if ((cdr_unit.flags & UNIT_ATT) == 0) /* attached? */
|
||||
|
||||
for (i = 0; i < CD_LEN + 2; i++) /* clear buffer */
|
||||
cdr_buf[i] = ' ';
|
||||
fgets (cdr_buf, CD_LEN + 2, cdr_unit.fileref); /* read card */
|
||||
if (fgets (cdr_buf, CD_LEN + 2, cdr_unit.fileref)) {}; /* read card */
|
||||
if (feof (cdr_unit.fileref)) /* eof? */
|
||||
return STOP_NOCD;
|
||||
if (ferror (cdr_unit.fileref)) { /* error? */
|
||||
|
||||
Reference in New Issue
Block a user