From a9b9ed95f39cff40710e74ed81fdedee1cfad9e2 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 10 May 2023 10:49:31 +0200 Subject: Remove all warnings from source code --- src/engine_tab/EngineTab.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/engine_tab/EngineTab.cpp') 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()); -- cgit v1.2.3