• we had an unused variable leftover
• make warning-free for both gcc and xlC
This commit is contained in:
6
var.c
6
var.c
@ -2,7 +2,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.41 2007/07/22 13:34:52 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.42 2007/07/22 14:01:50 tg Exp $");
|
||||
|
||||
/*
|
||||
* Variables
|
||||
@ -341,7 +341,7 @@ setstr(struct tbl *vq, const char *s, int error_ok)
|
||||
if ((vq->flag & RDONLY) && !no_ro_check) {
|
||||
warningf(true, "%s: is read only", vq->name);
|
||||
if (!error_ok)
|
||||
errorf("");
|
||||
errorfz();
|
||||
return 0;
|
||||
}
|
||||
if (!(vq->flag&INTEGER)) { /* string dest */
|
||||
@ -690,7 +690,7 @@ typeset(const char *var, Tflag set, Tflag clr, int field, int base)
|
||||
}
|
||||
}
|
||||
if (!ok)
|
||||
errorf("");
|
||||
errorfz();
|
||||
}
|
||||
|
||||
if (val != NULL) {
|
||||
|
Reference in New Issue
Block a user