aboutsummaryrefslogtreecommitdiff
path: root/src/engine_tab
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-05-10 10:49:31 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-05-10 10:49:31 +0200
commita9b9ed95f39cff40710e74ed81fdedee1cfad9e2 (patch)
treeacd01294ad1ae6f88b7515d6a6d8ac790f444f1d /src/engine_tab
parentff671f2171396088210600bab39ad9631e0d1daf (diff)
Remove all warnings from source code
Diffstat (limited to 'src/engine_tab')
-rw-r--r--src/engine_tab/EngineTab.cpp6
-rw-r--r--src/engine_tab/EngineTab.hpp2
2 files changed, 5 insertions, 3 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());
diff --git a/src/engine_tab/EngineTab.hpp b/src/engine_tab/EngineTab.hpp
index fc90436..065d7f5 100644
--- a/src/engine_tab/EngineTab.hpp
+++ b/src/engine_tab/EngineTab.hpp
@@ -7,8 +7,8 @@ wxDECLARE_EVENT(REFRESH_ENGINE_LIST, wxCommandEvent);
wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent);
class EngineTab : public TabEngine, public TabInfos {
- uciadapter::UCI *engine;
std::string confGroup, enginePath;
+ uciadapter::UCI *engine;
std::uint32_t engine_id;
void InitConfiguration();
void LoadConfiguration();