From 19d868b21893d1d4cd7941b5f906e133553ffa9a Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Sat, 25 May 1996 18:37:01 +0000 Subject: [PATCH] Add some code to convince foolish compilers variables have been initialized --- confpars.c | 7 +++++++ server/confpars.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/confpars.c b/confpars.c index a2494b86..c759f940 100644 --- a/confpars.c +++ b/confpars.c @@ -1095,6 +1095,11 @@ struct lease *parse_lease_statement (cfile, bc) seenbit = 4; lease.timestamp = t; break; + + default: + /*NOTREACHED*/ + seenbit = 0; + break; } } else { switch (token) { @@ -1168,6 +1173,8 @@ struct lease *parse_lease_statement (cfile, bc) if (token != SEMI) skip_to_semi (cfile); longjmp (jdref (bc), 1); + /*NOTREACHED*/ + seenbit = 0; } } if (seenmask & seenbit) { diff --git a/server/confpars.c b/server/confpars.c index a2494b86..c759f940 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -1095,6 +1095,11 @@ struct lease *parse_lease_statement (cfile, bc) seenbit = 4; lease.timestamp = t; break; + + default: + /*NOTREACHED*/ + seenbit = 0; + break; } } else { switch (token) { @@ -1168,6 +1173,8 @@ struct lease *parse_lease_statement (cfile, bc) if (token != SEMI) skip_to_semi (cfile); longjmp (jdref (bc), 1); + /*NOTREACHED*/ + seenbit = 0; } } if (seenmask & seenbit) {