mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 03:30:05 +00:00
sim65 suppress uninitialized variable warning
the EOF check was protecting uninitialized Val2 but the compiler can't figure that out
This commit is contained in:
parent
773716c32a
commit
c03d00bc80
@ -189,6 +189,7 @@ static unsigned char ReadProgramFile (void)
|
||||
}
|
||||
|
||||
/* Get load address */
|
||||
Val2 = 0; /* suppress uninitialized variable warning */
|
||||
if (((Val = fgetc(F)) == EOF) ||
|
||||
((Val2 = fgetc(F)) == EOF)) {
|
||||
Error ("'%s': Header missing load address", ProgramFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user