]> git.neil.brown.name Git - wiggle.git/commitdiff
extract: removed unused variable: lineno
authorNeilBrown <neilb@suse.de>
Thu, 17 May 2012 07:14:44 +0000 (17:14 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 17 May 2012 07:14:44 +0000 (17:14 +1000)
lineno isn't used, isn't initialised, but is incremented.
So some compilers ignore it completely and others complain
that it is no initialised.

Just remove it.

Reported-by: "P. Martin" <mrsmiley98@lycos.com>
Signed-off-by: NeilBrown <neilb@suse.de>
extract.c

index ba81ec0282436ed7276c193b3f4a33da19594a30..940de27f76569abf19b6bf73c03554c3e7d8a1ed 100644 (file)
--- a/extract.c
+++ b/extract.c
@@ -195,7 +195,6 @@ int split_patch(struct stream f, struct stream *f1, struct stream *f2)
  */
 int split_merge(struct stream f, struct stream *f1, struct stream *f2, struct stream *f3)
 {
-       int lineno;
        int state = 0;
        char *cp, *end;
        struct stream r1, r2, r3;
@@ -219,7 +218,6 @@ int split_merge(struct stream f, struct stream *f1, struct stream *f2, struct st
                 *  5 in file 1/3
                 */
                int len = end-cp;
-               lineno++;
                switch (state) {
                case 0:
                        if (len >= 8 &&