Add myself to uploaders; patch to handle set but unused variable
[tabix.git] / debian / patches / count-set-but-not-used.patch
diff --git a/debian/patches/count-set-but-not-used.patch b/debian/patches/count-set-but-not-used.patch
new file mode 100644 (file)
index 0000000..6204a1d
--- /dev/null
@@ -0,0 +1,22 @@
+Author: Andreas Tille <tille@debian.org>
+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