diff options
author | 2017-01-21 11:03:42 +0000 | |
---|---|---|
committer | 2017-01-21 11:03:42 +0000 | |
commit | 5b23c07f2e2e1e2957e96f08d7f82c5ed28d09f1 (patch) | |
tree | fe559e2db1f4d1e7503190af5af1a004d53a4546 | |
parent | Add ct and nonct versions of BN_mod_inverse for internal use (diff) | |
download | wireguard-openbsd-5b23c07f2e2e1e2957e96f08d7f82c5ed28d09f1.tar.xz wireguard-openbsd-5b23c07f2e2e1e2957e96f08d7f82c5ed28d09f1.zip |
Add an explicit syntax() call to indicate that no binary op was
found. Makes gcc happier. Add __dead to function prototype as we
go by.
ok guenther@
-rw-r--r-- | bin/test/test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/test/test.c b/bin/test/test.c index f14624755da..e6ef69c181f 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test.c,v 1.16 2016/01/13 13:13:04 gsoares Exp $ */ +/* $OpenBSD: test.c,v 1.17 2017/01/21 11:03:42 krw Exp $ */ /* $NetBSD: test.c,v 1.15 1995/03/21 07:04:06 cgd Exp $ */ /* @@ -150,7 +150,7 @@ static int getn(const char *s); static int newerf(const char *, const char *); static int olderf(const char *, const char *); static int equalf(const char *, const char *); -static void syntax(const char *op, char *msg); +static __dead void syntax(const char *op, char *msg); int main(int argc, char *argv[]) @@ -331,7 +331,8 @@ binop(void) case FILEQ: return equalf(opnd1, opnd2); } - /* NOTREACHED */ + + syntax(op->op_text, "not a binary operator"); } static enum token |