From 0ab62e29db1209a9e0a2d9261d4c7d85a8ca65da Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 29 May 2023 21:08:24 -0400 Subject: Fix inappropriate use of PRIuPTR for size_t --- meson.build | 1 - test/test_btree.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 6e42dda..90c27cf 100644 --- a/meson.build +++ b/meson.build @@ -114,7 +114,6 @@ elif cc.get_id() == 'msvc' '/wd4514', # unreferenced inline function has been removed '/wd4710', # function not inlined '/wd4711', # function selected for automatic inline expansion - '/wd4777', # format string and argument mismatch '/wd4800', # implicit conversion to bool '/wd4820', # padding added after construct '/wd5045', # will insert Spectre mitigation for memory load diff --git a/test/test_btree.c b/test/test_btree.c index 7fd73bc..9694a7b 100644 --- a/test/test_btree.c +++ b/test/test_btree.c @@ -632,7 +632,7 @@ main(int argc, char** argv) const size_t n_elems = (argc > 1) ? zix_test_size_arg(argv[1], 4U, 1U << 20U) : 131072U; - printf("Running %u tests with %" PRIuPTR " elements", n_tests, n_elems); + printf("Running %u tests with %zu elements", n_tests, n_elems); for (unsigned i = 0; i < n_tests; ++i) { printf("."); fflush(stdout); -- cgit v1.2.1