From e67561259972058822dc9e6c1d4424365e628fb4 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 23 Jul 2024 16:50:02 -0700 Subject: [PATCH] Suppress some warnings in test code --- Internal.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Internal.h b/Internal.h index 8b79a1e..10ddf17 100644 --- a/Internal.h +++ b/Internal.h @@ -858,13 +858,15 @@ struct TestDriver { stderr, "%p Expected %s, got %s for read of {%s} at version %" PRId64 "\n", - this, resultToStr(results2[i]), resultToStr(results1[i]), - printable(reads[i].begin).c_str(), reads[i].readVersion); + (void *)this, resultToStr(results2[i]), + resultToStr(results1[i]), printable(reads[i].begin).c_str(), + reads[i].readVersion); } else { fprintf(stderr, "%p Expected %s, got %s for read of [%s, %s) at version " "%" PRId64 "\n", - this, resultToStr(results2[i]), resultToStr(results1[i]), + (void *)this, resultToStr(results2[i]), + resultToStr(results1[i]), printable(reads[i].begin).c_str(), printable(reads[i].end).c_str(), reads[i].readVersion); }