aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/converter_benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/utils/converter_benchmark.cpp')
-rw-r--r--host/utils/converter_benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/converter_benchmark.cpp b/host/utils/converter_benchmark.cpp
index 017a4ff4c..aa3985fd1 100644
--- a/host/utils/converter_benchmark.cpp
+++ b/host/utils/converter_benchmark.cpp
@@ -330,7 +330,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[])
std::cout << "Invalid argument: --seed-mode must be either 'incremental' or 'random'." << std::endl;
}
- bool debug_mode = bool(vm.count("debug-converter"));
+ bool debug_mode = vm.count("debug-converter") > 0;
if (debug_mode) {
iterations = 1;
}
@@ -347,7 +347,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[])
if (priorities == "default" or priorities.empty()) {
try {
conv_list[prio] = get_converter(converter_id, prio)(); // Can throw a uhd::key_error
- } catch(const uhd::key_error &e) {
+ } catch(const uhd::key_error &) {
std::cout << "No converters found." << std::endl;
return EXIT_FAILURE;
}