From 745ddce75aa4860b9d82dcc5b06297df33f06583 Mon Sep 17 00:00:00 2001 From: herbert Date: Wed, 2 Mar 2005 19:59:26 +1100 Subject: Enclose abort insode ifdef DEBUG. --- src/bltin/test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/bltin/test.c b/src/bltin/test.c index 1bcba4e..6a2e02c 100644 --- a/src/bltin/test.c +++ b/src/bltin/test.c @@ -304,6 +304,11 @@ binop(void) syntax(op->op_text, "argument expected"); switch (op->op_num) { + default: +#ifdef DEBUG + abort(); + /* NOTREACHED */ +#endif case STREQ: return strcmp(opnd1, opnd2) == 0; case STRNE: @@ -330,9 +335,6 @@ binop(void) return olderf (opnd1, opnd2); case FILEQ: return equalf (opnd1, opnd2); - default: - abort(); - /* NOTREACHED */ } } -- cgit 1.4.1