diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-09-28 20:03:26 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-09-28 20:03:26 +0000 |
commit | 06c333e3a8b54bb86854488afa404dbf6101c5f9 (patch) | |
tree | 32b74a981ed5bde5ddf862500a7e5f0a35e7aed1 /usr.bin/make/parse.c | |
parent | 45000db18319b1400a31665ae7023cc957602b0f (diff) | |
download | FreeBSD-src-06c333e3a8b54bb86854488afa404dbf6101c5f9.zip FreeBSD-src-06c333e3a8b54bb86854488afa404dbf6101c5f9.tar.gz |
Add empty default cases where they should be, remove non-local execution stuff
in compat.c which doesn't even have preprocessor-conditional-hidden support
code, and add a debugging statement where we might end up with a nil list
somehow, but where I doubt it.
First confirmed userland kill for Flexelint.
Sponsored by: Bright Path Solutions
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r-- | usr.bin/make/parse.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 886e730..80ec43e 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -2088,7 +2088,8 @@ ParseSkipLine(skip) Buf_ReplaceLastByte(buf, (Byte)' '); lineno++; - while ((c = ParseReadc()) == ' ' || c == '\t'); + while ((c = ParseReadc()) == ' ' || c == '\t') + continue; if (c == EOF) break; @@ -2288,6 +2289,8 @@ test_char: semiNL = TRUE; } break; + default: + break; } /* * Copy in the previous character and save this one in lastc. @@ -2365,6 +2368,8 @@ test_char: line = ParseReadLine(); } break; + default: + break; } } return (line); |