1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +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

@@ -67,7 +67,7 @@ static void dbg_opdbginit() {
for (i=DEBUG_MINOPCODE; i<DEBUG_MAXOPCODE; i++)
opdebug[i-DEBUG_MINOPCODE] = DEBUG_PRE|DEBUG_POST;
while (!feof(fd)) {
fgets(line,100,fd);
if (fgets(line,100,fd)) {};
sscanf(line,"%x %d", &i, &f);
ASSURE(i >= DEBUG_MINOPCODE && i < DEBUG_MAXOPCODE);
opdebug[i-DEBUG_MINOPCODE] = f;

View File

@@ -286,7 +286,7 @@ t_stat fdc_attach(UNIT *uptr, CONST char *cptr) {
fdc_drv[i].dr_ready = 0;
if (uptr->capac > 0) {
fgets(header, 4, uptr->fileref);
if (fgets(header, 4, uptr->fileref)) {};
if (strncmp(header, "IMD", 3) != 0) {
sim_printf("FDC: Only IMD disk images are supported\n");
fdc_drv[i].dr_unit = NULL;
@@ -1116,7 +1116,7 @@ t_stat pdq3_diskCreate(FILE *fileref, const char *ctlr_comment) {
remaining = MAX_COMMENT_LEN;
do {
sim_printf("IMD> ");
fgets(curptr, remaining - 3, stdin);
if (fgets(curptr, remaining - 3, stdin)) {};
if (strcmp(curptr, ".\n") == 0) {
remaining = 0;
} else {