diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-10 10:49:31 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-10 10:49:31 +0200 |
| commit | a9b9ed95f39cff40710e74ed81fdedee1cfad9e2 (patch) | |
| tree | acd01294ad1ae6f88b7515d6a6d8ac790f444f1d /src/game_tab/right_panel/LiveEngineDialog.cpp | |
| parent | ff671f2171396088210600bab39ad9631e0d1daf (diff) | |
Remove all warnings from source code
Diffstat (limited to 'src/game_tab/right_panel/LiveEngineDialog.cpp')
| -rw-r--r-- | src/game_tab/right_panel/LiveEngineDialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game_tab/right_panel/LiveEngineDialog.cpp b/src/game_tab/right_panel/LiveEngineDialog.cpp index 4e86c63..e3f4951 100644 --- a/src/game_tab/right_panel/LiveEngineDialog.cpp +++ b/src/game_tab/right_panel/LiveEngineDialog.cpp @@ -1,8 +1,7 @@ #include "LiveEngineDialog.hpp" LiveEngineDialog::LiveEngineDialog(wxWindow *parent, std::uint32_t engine_id) - : DialogLiveEngine(parent), interval(1000), - engine(nullptr) { + : DialogLiveEngine(parent), engine(nullptr), interval(1000) { lines_list->InsertColumn(0, "#", wxLIST_FORMAT_LEFT, 50); lines_list->InsertColumn(1, "CP", wxLIST_FORMAT_LEFT, 70); lines_list->InsertColumn(2, "Line", wxLIST_FORMAT_LEFT, 300); @@ -63,6 +62,7 @@ void LiveEngineDialog::InitEngine() { } void LiveEngineDialog::OnClose(wxCloseEvent &e) { + UNUSED(e); if (engine != nullptr) { wxLogDebug("Close live engine!!"); timer.Stop(); @@ -83,6 +83,7 @@ void LiveEngineDialog::SetFEN(std::string fen) { } void LiveEngineDialog::TogglePauseEngine(wxCommandEvent &event) { + UNUSED(event); if (timer.IsRunning()) { StopEngine(); engine_stop_button->SetLabel("Restart"); @@ -115,6 +116,7 @@ void LiveEngineDialog::StartEngine() { } void LiveEngineDialog::OnTimerTick(wxTimerEvent &event) { + UNUSED(event); lines_list->DeleteAllItems(); // Clear lines_list engine->SyncAfter(0); EngineEvaluation *eval=new EngineEvaluation(); |
