From: NeilBrown Date: Thu, 17 May 2012 07:14:44 +0000 (+1000) Subject: extract: removed unused variable: lineno X-Git-Tag: v1.0~112 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=b5281154078e768c43bf75d70df66c61542c580a;p=wiggle.git extract: removed unused variable: lineno 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" Signed-off-by: NeilBrown --- diff --git a/extract.c b/extract.c index ba81ec0..940de27 100644 --- 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 &&