0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-19 19:52:15 +02:00

test_cpu_time: fix unused variable

clang 13 complains:
test/unittests/test_cpu_time.cpp:110:16:
error: variable 'd' set but not used [-Werror,-Wunused-but-set-variable]
        double d=0;

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
(cherry picked from commit 9367513b4a)
This commit is contained in:
Frank Lichtenheld 2022-04-12 11:00:15 +02:00 committed by David Sommerseth
parent ec5ea70de2
commit f48d020b67
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -112,6 +112,7 @@ namespace unittests
{
d += gen();
}
(void)d;
}