diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/bltin/test.c | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index d04bbde..62b37b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2005-03-02 Herbert Xu <herbert@gondor.apana.org.au> * Renamed symbols to avoid conflict with libc. + * Enclose abort inside ifdef DEBUG. 2005-02-28 Herbert Xu <herbert@gondor.apana.org.au> 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 */ } } |