From 85db3dd03ad5d4f42b267affba716be0c6a2889f Mon Sep 17 00:00:00 2001 From: janbar Date: Mon, 30 Oct 2023 18:46:17 +0100 Subject: [PATCH] fix optim compiler issue: set bool as volatile --- src/tracker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tracker.h b/src/tracker.h index c0805dc0..f3dcd7f6 100644 --- a/src/tracker.h +++ b/src/tracker.h @@ -139,7 +139,7 @@ private slots: double m_ascent; double m_descent; double m_maxSpeed; - bool m_busy; + volatile bool m_busy; QString m_recording; //std::vector m_routeSteps; //osmscout::RouteStep m_nextRouteStep; @@ -216,7 +216,7 @@ public slots: double m_ascent; double m_descent; - bool m_recording; + volatile bool m_recording; QList m_segment; QMutex m_lock; QSharedPointer m_file;