Hi tech,
there are some set operations, which are never read.
Fritjof
Index: rcsparse.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/rcsparse.c,v
retrieving revision 1.7
diff -u -p -r1.7 rcsparse.c
--- rcsparse.c 3 Jun 2013 17:04:35 -0000 1.7
+++ rcsparse.c 23 Apr 2014 17:09:44 -0000
@@ -916,7 +916,6 @@ rcsparse_token(RCSFILE *rfp, int allowed
} while (isspace(c));
pdp->rp_msglineno = pdp->rp_lineno;
- type = 0;
switch (c) {
case '@':
ret = rcsparse_string(rfp, allowed);
@@ -1105,7 +1104,6 @@ rcsparse(RCSFILE *rfp, struct rcs_sectio
int i, token;
pdp = (struct rcs_pdata *)rfp->rf_pdata;
- i = 0;
token = 0;
for (i = 0; sec[i].token != 0; i++) {
Index: diff_internals.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/diff_internals.c,v
retrieving revision 1.34
diff -u -p -r1.34 diff_internals.c
--- diff_internals.c 1 Apr 2011 17:25:26 -0000 1.34
+++ diff_internals.c 23 Apr 2014 17:10:19 -0000
@@ -1375,7 +1375,7 @@ dump_unified_vec(FILE *f1, FILE *f2, int
if (context_vec_start > context_vec_ptr)
return;
- b = d = 0; /* gcc */
+ d = 0; /* gcc */
lowa = MAX(1, cvp->a - diff_context);
upb = MIN(len[0], context_vec_ptr->b + diff_context);
lowc = MAX(1, cvp->c - diff_context);
Index: getlog.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/getlog.c,v
retrieving revision 1.97
diff -u -p -r1.97 getlog.c
--- getlog.c 8 Jan 2014 13:23:55 -0000 1.97
+++ getlog.c 23 Apr 2014 17:11:59 -0000
@@ -318,7 +318,7 @@ log_rev_print(struct rcs_delta *rdp)
struct rcs_branch *rb;
struct rcs_delta *nrdp;
- i = found = 0;
+ found = 0;
/* -s states */
if (runflags & L_STATES) {
Index: rcs.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/rcs.c,v
retrieving revision 1.311
diff -u -p -r1.311 rcs.c
--- rcs.c 8 Jan 2014 13:23:55 -0000 1.311
+++ rcs.c 23 Apr 2014 17:21:39 -0000
@@ -293,8 +293,6 @@ rcs_write(RCSFILE *rfp)
size_t len;
int fd, saved_errno;
- fd = -1;
-
if (rfp->rf_flags & RCS_SYNCED)
return;
@@ -2229,7 +2227,6 @@ rcs_kwexp_line(char *rcsfile, struct rcs
return;
c = line->l_line;
- found = 0;
/* Final character in buffer. */
fin = c + len - 1;
@@ -2503,7 +2500,6 @@ rcs_kwexp_line(char *rcsfile, struct rcs
lp->l_len = strlen(lp->l_line);
TAILQ_INSERT_AFTER(&(lines->l_lines), cur, lp,
l_list);
- cur = lp;
end = line->l_line + line->l_len - 1;