X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=tabix.git;a=blobdiff_plain;f=debian%2Fpatches%2Fcount-set-but-not-used.patch;fp=debian%2Fpatches%2Fcount-set-but-not-used.patch;h=6204a1d076facd83a4d88349cf01b91063692c2c;hp=0000000000000000000000000000000000000000;hb=e814cb5f411b3fd863406f4121ccd0a1e4462228;hpb=fc7956c6500c312e889d47020fa0267830cf4ee2 diff --git a/debian/patches/count-set-but-not-used.patch b/debian/patches/count-set-but-not-used.patch new file mode 100644 index 0000000..6204a1d --- /dev/null +++ b/debian/patches/count-set-but-not-used.patch @@ -0,0 +1,22 @@ +Author: Andreas Tille +Date: Wed, 25 Apr 2012 17:01:06 +0200 +Bug-Closed: http://bugs.debian.org/626267 +Description: Do not set unused variables + +--- tabix.orig/bgzf.c ++++ tabix/bgzf.c +@@ -627,11 +627,11 @@ + if (fp->open_mode == 'w') { + if (bgzf_flush(fp) != 0) return -1; + { // add an empty block +- int count, block_length = deflate_block(fp, 0); ++ int /* count, */ block_length = deflate_block(fp, 0); + #ifdef _USE_KNETFILE +- count = fwrite(fp->compressed_block, 1, block_length, fp->x.fpw); ++ /* count = */ fwrite(fp->compressed_block, 1, block_length, fp->x.fpw); + #else +- count = fwrite(fp->compressed_block, 1, block_length, fp->file); ++ /* count = */ fwrite(fp->compressed_block, 1, block_length, fp->file); + #endif + } + #ifdef _USE_KNETFILE