From 8b6d8e346e9682f44d03619c9fdd8b1d8d695094 Mon Sep 17 00:00:00 2001 From: Andrew D Smith Date: Mon, 15 Jul 2024 09:13:03 -0700 Subject: [PATCH] src/falco.cpp: putting the check for BamRecord before turning on quiet mode inside a ifdef USE_HTS guard because otherwise BamRecord might not be visible --- src/falco.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/falco.cpp b/src/falco.cpp index e8cd9d4..5cd57f4 100644 --- a/src/falco.cpp +++ b/src/falco.cpp @@ -77,11 +77,12 @@ read_stream_into_stats(T &in, FastqStats &stats, FalcoConfig &falco_config) { size_t file_size = in.load(); size_t tot_bytes_read = 0; - // can't report progress for bam files - constexpr bool is_bam = std::is_same::value; - // decide whether to report progress - const bool quiet = falco_config.quiet || is_bam; + const bool quiet = falco_config.quiet +#ifdef USE_HTS + || std::is_same::value // can't do progress for bam +#endif + ; ProgressBar progress(file_size, "running falco"); if (!quiet)