Skip to content
Snippets Groups Projects
Commit 22c374d5 authored by Janis Born's avatar Janis Born
Browse files

fix -Wdeprecated-increment-bool warnings

parent ff03bf53
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,10 @@ class CSystemTimer : public CProcessTimer
public:
CSystemTimer() : CProcessTimer() {
static bool warned = false;
if ( !warned++ ) ACGL::Utils::error() << "No system timer present on this OS - fallback to process time" << std::endl;
if ( !warned ) {
ACGL::Utils::error() << "No system timer present on this OS - fallback to process time" << std::endl;
warned = true;
}
}
};
......@@ -150,7 +153,10 @@ class CThreadTimer : public CProcessTimer
public:
CThreadTimer() : CProcessTimer() {
static bool warned = false;
if ( !warned++ ) ACGL::Utils::error() << "No thread timer present on this OS - fallback to process time" << std::endl;
if ( !warned ) {
ACGL::Utils::error() << "No thread timer present on this OS - fallback to process time" << std::endl;
warned = true;
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment