1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +00:00

SAGE, PDQ-3: Silence GCC optimizer warnings about unused function results

This commit is contained in:
Mark Pizzolato
2020-01-04 08:42:15 -08:00
parent 787edb211c
commit bcdabeb9fe
3 changed files with 4 additions and 4 deletions

View File

@@ -228,7 +228,7 @@ t_stat i8272_attach(UNIT *uptr, CONST char *cptr)
chip->drive[i].ready = 0;
if(uptr->capac > 0) {
fgets(header, 4, uptr->fileref);
if (fgets(header, 4, uptr->fileref)) {};
if(strncmp(header, "IMD", 3)) {
sim_printf("I8272: Only IMD disk images are supported\n");
chip->drive[i].uptr = NULL;