Fix various warnings

-Wunused-parameter
-Wreorder
-Wsign-compare
-Wunused-private-field
This commit is contained in:
Dennis Klein
2018-05-24 11:07:39 +02:00
committed by Mohammad Al-Turany
parent 811e716731
commit 72f5cdef58
13 changed files with 22 additions and 24 deletions

View File

@@ -501,7 +501,7 @@ void FairMQDevice::RunWrapper()
while (CheckCurrentState(RUNNING) && ConditionalRun())
{
if (fRate > 0.001) {
auto timespan = chrono::duration_cast<TimeScale>(Clock::now() - reftime).count() - fLastTime;
auto timespan = static_cast<TimeScale::rep>(chrono::duration_cast<TimeScale>(Clock::now() - reftime).count() - fLastTime);
if (timespan < period) {
TimeScale sleepfor(period - timespan);
this_thread::sleep_for(sleepfor);