From e22b2566130eadc148c7aa89ee3cb429b22f1dfb Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Mon, 18 Nov 2019 09:38:55 +0300
Subject: Fix warnings in gcc trunk

---
 src/progs/dyecmd/client.cpp   | 4 ++--
 src/progs/manaplus/client.cpp | 4 ++--
 src/utils/timer.cpp           | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

(limited to 'src')

diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp
index 27aab8bb3..483451ed6 100644
--- a/src/progs/dyecmd/client.cpp
+++ b/src/progs/dyecmd/client.cpp
@@ -601,7 +601,7 @@ int Client::gameExec()
         }
         soundManager.logic();
 
-        logic_count += k;
+        logic_count = logic_count + k;
         if (gui != nullptr)
             gui->slowLogic();
 //        if (mGame)
@@ -615,7 +615,7 @@ int Client::gameExec()
         // Update the screen when application is visible, delay otherwise.
         if (!WindowManager::getIsMinimized())
         {
-            frame_count++;
+            frame_count = frame_count + 1;
             if (gui != nullptr)
                 gui->draw();
             mainGraphics->updateScreen();
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp
index 439e3c94c..76d64221d 100644
--- a/src/progs/manaplus/client.cpp
+++ b/src/progs/manaplus/client.cpp
@@ -996,7 +996,7 @@ int Client::gameExec()
 
         PERF_STAT(5);
 
-        logic_count += k;
+        logic_count = logic_count + k;
         if (gui != nullptr)
             gui->slowLogic();
 
@@ -1671,7 +1671,7 @@ int Client::gameExec()
         // Update the screen when application is visible, delay otherwise.
         if (!WindowManager::getIsMinimized())
         {
-            frame_count++;
+            frame_count = frame_count + 1;
             if (gui != nullptr)
                 gui->draw();
             mainGraphics->updateScreen();
diff --git a/src/utils/timer.cpp b/src/utils/timer.cpp
index fd79369bf..b047c2882 100644
--- a/src/utils/timer.cpp
+++ b/src/utils/timer.cpp
@@ -66,7 +66,7 @@ static uint32_t nextSecond(uint32_t interval, void *param A_UNUSED);
  */
 static uint32_t nextTick(uint32_t interval, void *param A_UNUSED)
 {
-    tick_time++;
+    tick_time = tick_time + 1;
     if (tick_time == MAX_TICK_VALUE)
         tick_time = 0;
     return interval;
-- 
cgit v1.2.3-70-g09d2