Remove all warnings from source code

This commit is contained in:
Loic Guegan 2023-05-10 10:49:31 +02:00
parent ff671f2171
commit a9b9ed95f3
31 changed files with 72 additions and 48 deletions

View file

@ -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());

View file

@ -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();