Skip to content

Commit 3c99c2b

Browse files
committed
r1271: warn about @hd in -H
1 parent a2cf60d commit 3c99c2b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bwa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ void bwa_print_sam_hdr(const bntseq_t *bns, const char *hdr_line)
423423
}
424424
}
425425
if (n_HD == 0) err_printf("@HD\tVN:1.5\tSO:unsorted\tGO:query\n");
426+
else if (bwa_verbose >= 2)
427+
fprintf(stderr, "[W::%s] please don't include @HD with option -H. Continue anyway.\n", __func__);
426428
if (n_SQ == 0) {
427429
for (i = 0; i < bns->n_seqs; ++i) {
428430
err_printf("@SQ\tSN:%s\tLN:%d", bns->anns[i].name, bns->anns[i].len);

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "utils.h"
3131

3232
#ifndef PACKAGE_VERSION
33-
#define PACKAGE_VERSION "0.7.18-r1270-dirty"
33+
#define PACKAGE_VERSION "0.7.18-r1271-dirty"
3434
#endif
3535

3636
int bwa_fa2pac(int argc, char *argv[]);

0 commit comments

Comments
 (0)