diff options
author | 1996-12-14 12:17:33 +0000 | |
---|---|---|
committer | 1996-12-14 12:17:33 +0000 | |
commit | 764064c4bd427c8520476ca33857e71dc15ea49c (patch) | |
tree | 616fd15d527776c012eb73718e6b36b74b6cfa37 /bin/expr/expr.c | |
parent | Use size_t more places (diff) | |
download | wireguard-openbsd-764064c4bd427c8520476ca33857e71dc15ea49c.tar.xz wireguard-openbsd-764064c4bd427c8520476ca33857e71dc15ea49c.zip |
-Wall'ing.
Diffstat (limited to 'bin/expr/expr.c')
-rw-r--r-- | bin/expr/expr.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/expr/expr.c b/bin/expr/expr.c index 49b1736ba8e..412887e53f3 100644 --- a/bin/expr/expr.c +++ b/bin/expr/expr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: expr.c,v 1.4 1996/09/15 22:27:38 millert Exp $ */ +/* $OpenBSD: expr.c,v 1.5 1996/12/14 12:17:59 mickey Exp $ */ /* $NetBSD: expr.c,v 1.3.6.1 1996/06/04 20:41:47 cgd Exp $ */ /* @@ -213,7 +213,7 @@ nexttoken() return; } -void +__dead void error() { errx(2, "syntax error"); @@ -370,7 +370,7 @@ eval2() { struct val *l, *r; enum token op; - int v, li, ri; + int v = 0, li, ri; l = eval3(); while ((op = token) == EQ || op == NE || op == LT || op == GT || op == LE || op == GE) { @@ -397,6 +397,8 @@ eval2() case NE: v = (li != ri); break; + default: + break; } } else { to_string(l); @@ -421,6 +423,8 @@ eval2() case NE: v = (strcoll(l->u.s, r->u.s) != 0); break; + default: + break; } } |