tst_benchlibcallgrind: silence a compiler warning
Change-Id: I68cc530fa8eaf941a6ddb7e6987ff37ec270bc4d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
283cdb0e70
commit
caa21ffc65
@ -22,7 +22,7 @@ private slots:
|
|||||||
void tst_BenchlibCallgrind::failInChildProcess()
|
void tst_BenchlibCallgrind::failInChildProcess()
|
||||||
{
|
{
|
||||||
#ifdef HAVE_VALGRIND_H
|
#ifdef HAVE_VALGRIND_H
|
||||||
static double f = 1.0;
|
[[maybe_unused]] static double f = 1.0;
|
||||||
QBENCHMARK {
|
QBENCHMARK {
|
||||||
for (int i = 0; i < 1000000; ++i) {
|
for (int i = 0; i < 1000000; ++i) {
|
||||||
f *= 1.1;
|
f *= 1.1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user