Commit cb0f9e3a authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix PVS Studio warning: avoid non-used return value warning in benchmarks

V530 The return value of function 'atan2' is required to be utilized.
V530 The return value of function 'drand48' is required to be utilized.

CCBUG:393431
parent 72eb3d05
......@@ -48,7 +48,8 @@ void KisFastMathBenchmark::benchmarkLibCAtan2()
double y = j;
atan2(y, x);
double result = atan2(y, x);
Q_UNUSED(result);
}
}
}
......
......@@ -493,7 +493,8 @@ void KisStrokeBenchmark::benchmarkRand48()
QBENCHMARK
{
for (int i = 0 ; i < COUNT; i++){
drand48();
double result = drand48();
Q_UNUSED(result);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment