Remove .gitignore file that prevents git clean to remove the quilt .pc directory.
[tabix.git] / debian / patches / count-set-but-not-used.patch
1 Author: Andreas Tille <tille@debian.org>
2 Date: Wed, 25 Apr 2012 17:01:06 +0200
3 Bug-Closed: http://bugs.debian.org/626267
4 Description: Do not set unused variables
5
6 --- tabix.orig/bgzf.c
7 +++ tabix/bgzf.c
8 @@ -627,11 +627,11 @@
9      if (fp->open_mode == 'w') {
10          if (bgzf_flush(fp) != 0) return -1;
11                 { // add an empty block
12 -                       int count, block_length = deflate_block(fp, 0);
13 +                       int /* count, */ block_length = deflate_block(fp, 0);
14  #ifdef _USE_KNETFILE
15 -                       count = fwrite(fp->compressed_block, 1, block_length, fp->x.fpw);
16 +                       /* count = */ fwrite(fp->compressed_block, 1, block_length, fp->x.fpw);
17  #else
18 -                       count = fwrite(fp->compressed_block, 1, block_length, fp->file);
19 +                       /* count = */ fwrite(fp->compressed_block, 1, block_length, fp->file);
20  #endif
21                 }
22  #ifdef _USE_KNETFILE