mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Add some code to convince foolish compilers variables have been initialized
This commit is contained in:
@@ -1095,6 +1095,11 @@ struct lease *parse_lease_statement (cfile, bc)
|
|||||||
seenbit = 4;
|
seenbit = 4;
|
||||||
lease.timestamp = t;
|
lease.timestamp = t;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
/*NOTREACHED*/
|
||||||
|
seenbit = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (token) {
|
switch (token) {
|
||||||
@@ -1168,6 +1173,8 @@ struct lease *parse_lease_statement (cfile, bc)
|
|||||||
if (token != SEMI)
|
if (token != SEMI)
|
||||||
skip_to_semi (cfile);
|
skip_to_semi (cfile);
|
||||||
longjmp (jdref (bc), 1);
|
longjmp (jdref (bc), 1);
|
||||||
|
/*NOTREACHED*/
|
||||||
|
seenbit = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (seenmask & seenbit) {
|
if (seenmask & seenbit) {
|
||||||
|
@@ -1095,6 +1095,11 @@ struct lease *parse_lease_statement (cfile, bc)
|
|||||||
seenbit = 4;
|
seenbit = 4;
|
||||||
lease.timestamp = t;
|
lease.timestamp = t;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
/*NOTREACHED*/
|
||||||
|
seenbit = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (token) {
|
switch (token) {
|
||||||
@@ -1168,6 +1173,8 @@ struct lease *parse_lease_statement (cfile, bc)
|
|||||||
if (token != SEMI)
|
if (token != SEMI)
|
||||||
skip_to_semi (cfile);
|
skip_to_semi (cfile);
|
||||||
longjmp (jdref (bc), 1);
|
longjmp (jdref (bc), 1);
|
||||||
|
/*NOTREACHED*/
|
||||||
|
seenbit = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (seenmask & seenbit) {
|
if (seenmask & seenbit) {
|
||||||
|
Reference in New Issue
Block a user