diff --git a/src/applib/app_builder_widget.h b/src/applib/app_builder_widget.h index 4c121d8..2534566 100644 --- a/src/applib/app_builder_widget.h +++ b/src/applib/app_builder_widget.h @@ -16,6 +16,7 @@ Copyright: #include #include #include +#include #include "hz/debug.h" #include "hz/data_file.h" @@ -179,7 +180,7 @@ template WidgetPtr AppBuilderWidget::lookup_widget(const Glib::ustring& name) { WidgetPtr w = nullptr; - lookup_widget(name, w); + [[maybe_unused]] bool success = lookup_widget(name, w); return w; } diff --git a/src/applib/smartctl_executor.h b/src/applib/smartctl_executor.h index e2efd1e..350a81a 100644 --- a/src/applib/smartctl_executor.h +++ b/src/applib/smartctl_executor.h @@ -137,7 +137,7 @@ class SmartctlExecutorGeneric : public ExecutorSync { // Treat most exit codes as non-errors. if (error_type == "exit") { int exit_code = 0; - e->get_code(exit_code); + [[maybe_unused]] const bool status = e->get_code(exit_code); // Ignore everyone except this. // Note that we don't treat exit_open_failed as failure because: // * It may be returned from a DVD that returns product info but has no disk inside;