• we had an unused variable leftover

• make warning-free for both gcc and xlC
This commit is contained in:
tg
2007-07-22 14:01:50 +00:00
parent 748d09122a
commit b09b3621e2
8 changed files with 28 additions and 17 deletions

4
expr.c
View File

@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/expr.c,v 1.11 2007/07/22 13:34:49 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/expr.c,v 1.12 2007/07/22 14:01:48 tg Exp $");
/* The order of these enums is constrained by the order of opinfo[] */
enum token {
@ -178,7 +178,7 @@ v_evaluate(struct tbl *vp, const char *expr, volatile int error_ok,
if (i == LAEXPR) {
if (error_ok == KSH_RETURN_ERROR)
return (0);
errorf("");
errorfz();
}
unwind(i);
/* NOTREACHED */