tcsh-6.14.06 is now available
Martin Kraemer
Martin.Kraemer at Fujitsu-Siemens.com
Thu Aug 24 17:55:18 EEST 2006
Hi again,
Here are two unused variables, and an "unreachable" break (after a
return, no sensible compiler should warn about a FALLTHRU case...).
Martin
--
<Martin.Kraemer at Fujitsu-Siemens.com> | Fujitsu Siemens
Fon: +49-89-636-46021, FAX: +49-89-636-48332 | 81730 Munich, Germany
-------------- next part --------------
diff --exclude=config.log --exclude='*.o' --exclude='*.a' --exclude='*~' --exclude=cscope.out -burp tcsh-6.14.06.orig/sh.c tcsh-6.14.06/sh.c
--- tcsh-6.14.06.orig/sh.c 2006-08-23 17:03:14.000000000 +0200
+++ tcsh-6.14.06/sh.c 2006-08-24 15:36:32.000449000 +0200
@@ -1603,7 +1603,6 @@ static void
srcunit(int unit, int onlyown, int hflg, Char **av)
{
struct saved_state st;
- int old_pintr_disabled = 0;
st.SHIN = -1; /* st_restore checks this */
@@ -1622,7 +1621,6 @@ srcunit(int unit, int onlyown, int hflg,
/* Does nothing before st_save() because st.SHIN == -1 */
cleanup_push(&st, st_restore);
if (setintr) {
- old_pintr_disabled = pintr_disabled;
pintr_disabled++;
cleanup_push(&pintr_disabled, disabled_cleanup);
}
diff --exclude=config.log --exclude='*.o' --exclude='*.a' --exclude='*~' --exclude=cscope.out -burp tcsh-6.14.06.orig/sh.dol.c tcsh-6.14.06/sh.dol.c
--- tcsh-6.14.06.orig/sh.dol.c 2006-03-18 08:11:07.000000000 +0100
+++ tcsh-6.14.06/sh.dol.c 2006-08-24 15:49:38.000444000 +0200
@@ -201,11 +208,10 @@ Dword(struct blk_buf *bb)
eChar c, c1;
struct Strbuf wbuf = Strbuf_INIT;
int dolflg;
- int sofar = 0, done = 0;
+ int sofar = 0;
cleanup_push(&wbuf, Strbuf_cleanup);
for (;;) {
- done = 1;
c = DgetC(DODOL);
switch (c) {
diff --exclude=config.log --exclude='*.o' --exclude='*.a' --exclude='*~' --exclude=cscope.out -burp tcsh-6.14.06.orig/sh.hist.c tcsh-6.14.06/sh.hist.c
--- tcsh-6.14.06.orig/sh.hist.c 2006-03-02 19:46:44.000000000 +0100
+++ tcsh-6.14.06/sh.hist.c 2006-08-24 15:53:36.000768000 +0200
@@ -368,7 +368,6 @@ fmthist(int fmt, ptr_t ptr)
buf = xmalloc(1);
buf[0] = '\0';
return buf;
- break;
}
}
More information about the Tcsh
mailing list