Suppress some warnings in test code

This commit is contained in:
2024-07-23 16:50:02 -07:00
parent 42b5d50492
commit e675612599

View File

@@ -858,13 +858,15 @@ struct TestDriver {
stderr, stderr,
"%p Expected %s, got %s for read of {%s} at version %" PRId64 "%p Expected %s, got %s for read of {%s} at version %" PRId64
"\n", "\n",
this, resultToStr(results2[i]), resultToStr(results1[i]), (void *)this, resultToStr(results2[i]),
printable(reads[i].begin).c_str(), reads[i].readVersion); resultToStr(results1[i]), printable(reads[i].begin).c_str(),
reads[i].readVersion);
} else { } else {
fprintf(stderr, fprintf(stderr,
"%p Expected %s, got %s for read of [%s, %s) at version " "%p Expected %s, got %s for read of [%s, %s) at version "
"%" PRId64 "\n", "%" 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].begin).c_str(),
printable(reads[i].end).c_str(), reads[i].readVersion); printable(reads[i].end).c_str(), reads[i].readVersion);
} }