SAGE, PDQ-3: Silence GCC optimizer warnings about unused function results
This commit is contained in:
parent
787edb211c
commit
bcdabeb9fe
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue