2
0
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:
Ted Lemon
1996-05-25 18:37:01 +00:00
parent faf4a8deba
commit 19d868b218
2 changed files with 14 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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) {