Skip to content

Commit

Permalink
fix optim compiler issue: set bool as volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Oct 30, 2023
1 parent c2075fb commit 85db3dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<osmscout::RouteStep> m_routeSteps;
//osmscout::RouteStep m_nextRouteStep;
Expand Down Expand Up @@ -216,7 +216,7 @@ public slots:
double m_ascent;
double m_descent;

bool m_recording;
volatile bool m_recording;
QList<osmscout::gpx::TrackPoint> m_segment;
QMutex m_lock;
QSharedPointer<QFile> m_file;
Expand Down

0 comments on commit 85db3dd

Please sign in to comment.