[med-svn] [htslib] 07/13: Clarify misleading code formatting [minor]
Andreas Tille
tille at debian.org
Sat Jan 30 13:23:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository htslib.
commit 4c0c448f902b76e6886963c8a28c9f59e5455606
Author: John Marshall <jm18 at sanger.ac.uk>
Date: Fri Jan 22 15:16:56 2016 +0000
Clarify misleading code formatting [minor]
Prevents GCC 6 -Wmisleading-indentation warning.
---
vcf.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/vcf.c b/vcf.c
index 0e7a075..00e9196 100644
--- a/vcf.c
+++ b/vcf.c
@@ -2099,7 +2099,8 @@ int vcf_format(const bcf_hdr_t *h, const bcf1_t *v, kstring_t *s)
for (i = 0; i < v->n_info; ++i) {
bcf_info_t *z = &v->d.info[i];
if ( !z->vptr ) continue;
- if ( !first ) kputc(';', s); first = 0;
+ if ( !first ) kputc(';', s);
+ first = 0;
kputs(h->id[BCF_DT_ID][z->key].key, s);
if (z->len <= 0) continue;
kputc('=', s);
@@ -2146,7 +2147,8 @@ int vcf_format(const bcf_hdr_t *h, const bcf1_t *v, kstring_t *s)
for (i = 0; i < (int)v->n_fmt; ++i) {
bcf_fmt_t *f = &fmt[i];
if ( !f->p ) continue;
- if (!first) kputc(':', s); first = 0;
+ if (!first) kputc(':', s);
+ first = 0;
if (gt_i == i)
bcf_format_gt(f,j,s);
else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htslib.git
More information about the debian-med-commit
mailing list