Files
open-simh.simtools/mlb-rsx.c
Olaf Seibert ada2d17a1b Silence a spurious "maybe uninitialized" error.
mlb-rsx.c: In function 'mlb_rsx_entry':
mlb-rsx.c:374:23: warning: 'ent' may be used uninitialized in this function [-Wmaybe-uninitialized]
     fseek(mlb->fp, ent->position, SEEK_SET);
                    ~~~^~~~~~~~~~

It is spurious because ent gets initialized in the loop above.
If the loop is never executed, this must be because 0 >= mlb->nentries
and NULL is returned, so the fseek() is never reached.
2021-01-31 16:16:05 +01:00

19 KiB