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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user