From fce77dc7d765a301b2d29f505e2448057510e20a Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Mon, 8 Mar 2021 16:51:12 +0400 Subject: [PATCH] Fixed building under macosx. --- src/applib/examples/example_smartctl_executor.cpp | 1 - src/applib/storage_detector_other.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applib/examples/example_smartctl_executor.cpp b/src/applib/examples/example_smartctl_executor.cpp index 14f2e6a..6314d4d 100644 --- a/src/applib/examples/example_smartctl_executor.cpp +++ b/src/applib/examples/example_smartctl_executor.cpp @@ -14,7 +14,6 @@ Copyright: #include "local_glibmm.h" #include -#include // to avoid throw() macro errors. #include #include "hz/main_tools.h" diff --git a/src/applib/storage_detector_other.cpp b/src/applib/storage_detector_other.cpp index f4d153e..017e930 100644 --- a/src/applib/storage_detector_other.cpp +++ b/src/applib/storage_detector_other.cpp @@ -29,7 +29,8 @@ Copyright: -std::string detect_drives_other(std::vector& drives, const ExecutorFactoryPtr& ex_factory) +std::string detect_drives_other(std::vector& drives, + [[maybe_unused]] const ExecutorFactoryPtr& ex_factory) { debug_out_info("app", DBG_FUNC_MSG << "Detecting drives through /dev...\n");