diff --git a/toxcore/crypto_core_test.cc b/toxcore/crypto_core_test.cc index 1fbdd296..cdc315b2 100644 --- a/toxcore/crypto_core_test.cc +++ b/toxcore/crypto_core_test.cc @@ -29,7 +29,8 @@ enum { clock_t memcmp_time(void *a, void *b, size_t len) { clock_t start = clock(); - crypto_memcmp(a, b, len); + volatile int result = crypto_memcmp(a, b, len); + (void)result; return clock() - start; }