aboutsummaryrefslogtreecommitdiff
path: root/src/engine_tab/EngineTab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine_tab/EngineTab.cpp')
-rw-r--r--src/engine_tab/EngineTab.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine_tab/EngineTab.cpp b/src/engine_tab/EngineTab.cpp
index 4c3f82d..6389983 100644
--- a/src/engine_tab/EngineTab.cpp
+++ b/src/engine_tab/EngineTab.cpp
@@ -23,7 +23,7 @@ EngineTab::EngineTab(wxWindow *parent, uciadapter::UCI *engine,
Bind(wxEVT_BUTTON, &EngineTab::OnSave, this, ENGINE_SAVE_CONF_BUTTON);
Bind(wxEVT_BUTTON, &EngineTab::OnDelete, this, ENGINE_DELETE_CONF_BUTTON);
- Bind(wxEVT_PG_CHANGED, [p=this](wxPropertyGridEvent& event){p->is_dirty=true;});
+ Bind(wxEVT_PG_CHANGED, [p=this](wxPropertyGridEvent& event){ UNUSED(event); p->is_dirty=true;});
}
EngineTab::EngineTab(wxWindow *parent, std::uint32_t id)
@@ -46,7 +46,7 @@ EngineTab::EngineTab(wxWindow *parent, std::uint32_t id)
Bind(wxEVT_BUTTON, &EngineTab::OnSave, this, ENGINE_SAVE_CONF_BUTTON);
Bind(wxEVT_BUTTON, &EngineTab::OnDelete, this, ENGINE_DELETE_CONF_BUTTON);
- Bind(wxEVT_PG_CHANGED, [p=this](wxPropertyGridEvent& event){p->is_dirty=true;});
+ Bind(wxEVT_PG_CHANGED, [p=this](wxPropertyGridEvent& event){ UNUSED(event); p->is_dirty=true;});
}
EngineTab::~EngineTab() {
@@ -58,6 +58,7 @@ EngineTab::~EngineTab() {
}
void EngineTab::OnDelete(wxCommandEvent &event) {
+ UNUSED(event);
CONFIG_OPEN(conf);
conf->DeleteGroup(confGroup);
CONFIG_CLOSE(conf);
@@ -103,6 +104,7 @@ void EngineTab::LoadConfiguration() {
}
void EngineTab::OnSave(wxCommandEvent &event) {
+ UNUSED(event);
CONFIG_OPEN(conf2);
// Update engine name:
conf2->Write(confGroup + "/name", engine_name->GetValue());