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:
@@ -189,6 +189,7 @@ static unsigned char ReadProgramFile (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get load address */
|
/* Get load address */
|
||||||
|
Val2 = 0; /* suppress uninitialized variable warning */
|
||||||
if (((Val = fgetc(F)) == EOF) ||
|
if (((Val = fgetc(F)) == EOF) ||
|
||||||
((Val2 = fgetc(F)) == EOF)) {
|
((Val2 = fgetc(F)) == EOF)) {
|
||||||
Error ("'%s': Header missing load address", ProgramFile);
|
Error ("'%s': Header missing load address", ProgramFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user