aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/right_panel/LiveEngineDialog.cpp
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/game_tab/right_panel/LiveEngineDialog.cpp
parentff671f2171396088210600bab39ad9631e0d1daf (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.cpp6
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();