Skip to content

Commit

Permalink
Handle unused variable warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephi committed May 20, 2016
1 parent 9a2038e commit f5064dc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/bmf_depth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ namespace BMF {
std::vector<uint64_t> singleton_capture_counts(n);
kstring_t cov_str{0, 0, nullptr};
kstring_t str{0};
#if !NDEBUG
const int n_lines = dlib::count_bed_lines(bedpath);
#endif
while (ks_getuntil(ks, KS_SEP_LINE, &str, &dret) >= 0) {
char *p, *q;
int tid, start, stop, pos, region_len, arr_ind;
Expand Down
1 change: 1 addition & 0 deletions src/bmf_mark.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <assert.h>
#include <getopt.h>
#include "dlib/bam_util.h"
#include "dlib/cstr_util.h"
Expand Down
5 changes: 3 additions & 2 deletions src/bmf_rsq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,9 @@ namespace BMF {
} else {
LOG_DEBUG("About to output bam\n");
uint8_t *data;
if((data = bam_aux_get(stack->a[i], "MU")) != nullptr)
bam_aux_del(stack->a[i], data);
for(const char *tag: {"MU", "ms", "LM"})
if((data = bam_aux_get(stack->a[i], tag)) != nullptr)
bam_aux_del(stack->a[i], data);
sam_write1(settings->out, settings->hdr, stack->a[i]);
}
bam_destroy1(stack->a[i]), stack->a[i] = nullptr;
Expand Down
1 change: 0 additions & 1 deletion src/bmf_vetter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ namespace BMF {
continue; // Only handle simple SNVs
}
if(!dlib::vcf_bed_test(vrec, aux->bed) && !aux->vet_all) {
if(aux->write_outside_bed) bcf_write(aux->vcf_ofp, aux->vcf_header, vrec);
continue; // Only handle simple SNVs
}
/*
Expand Down

0 comments on commit f5064dc

Please sign in to comment.