From bd2789b726ef12bff0f60bcf7abe11f1a49bac9b Mon Sep 17 00:00:00 2001 From: "Alex W. Jackson" Date: Sun, 11 Sep 2011 02:23:54 +0000 Subject: [PATCH] Fixed compile of split tool under GCC 4.6 (no whatsnew) --- src/tools/split.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tools/split.c b/src/tools/split.c index 03592ec6cb3..6c27cf69c0e 100644 --- a/src/tools/split.c +++ b/src/tools/split.c @@ -98,7 +98,6 @@ static int split_file(const char *filename, const char *basename, UINT32 splitsi void *splitbuffer = NULL; int index, partnum; UINT64 totallength; - UINT32 totalparts; file_error filerr; int error = 1; @@ -130,7 +129,6 @@ static int split_file(const char *filename, const char *basename, UINT32 splitsi fprintf(stderr, "Fatal error: too many splits (maximum is %d)\n", MAX_PARTS); goto cleanup; } - totalparts = totallength / splitsize; // allocate a buffer for reading splitbuffer = malloc(splitsize);