mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-25 21:35:33 +00:00
Fixed compiler warnings.
This commit is contained in:
@@ -16,6 +16,7 @@ Copyright:
|
||||
#include <string>
|
||||
#include <gtkmm.h>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "hz/debug.h"
|
||||
#include "hz/data_file.h"
|
||||
@@ -179,7 +180,7 @@ template<typename WidgetPtr>
|
||||
WidgetPtr AppBuilderWidget<Child, MultiInstance, WidgetType>::lookup_widget(const Glib::ustring& name)
|
||||
{
|
||||
WidgetPtr w = nullptr;
|
||||
lookup_widget(name, w);
|
||||
[[maybe_unused]] bool success = lookup_widget(name, w);
|
||||
return w;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user