From 4123356f67e29facaf6cf773d90173de62150be7 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Tue, 1 Oct 2024 12:59:15 -0400 Subject: [PATCH] r258: fixed a harmless gcc warning --- miniprot.h | 2 +- ntseq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/miniprot.h b/miniprot.h index 65a48ba..f7f5909 100644 --- a/miniprot.h +++ b/miniprot.h @@ -3,7 +3,7 @@ #include -#define MP_VERSION "0.13-r257-dirty" +#define MP_VERSION "0.13-r258-dirty" #define MP_F_NO_SPLICE 0x1 #define MP_F_NO_ALIGN 0x2 diff --git a/ntseq.c b/ntseq.c index 55e034b..b2905ee 100644 --- a/ntseq.c +++ b/ntseq.c @@ -250,7 +250,7 @@ int32_t mp_ntseq_read_spsc(mp_ntdb_t *nt, const char *fn) while (ks_getuntil(ks, KS_SEP_LINE, &str, &dret) >= 0) { mp_spsc_t *s; char *p, *q, *name = 0; - int32_t i, type = -1, strand = 0, cid = -1, score; + int32_t i, type = -1, strand = 0, cid = -1, score = -1; int64_t pos = -1; for (i = 0, p = q = str.s;; ++p) { if (*p == '\t' || *p == 0) {