summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-29 21:08:24 -0400
committerDavid Robillard <d@drobilla.net>2023-05-29 21:08:24 -0400
commit0ab62e29db1209a9e0a2d9261d4c7d85a8ca65da (patch)
tree72dacfab8a98f92f64e4f42b37d9621b745bd8b0
parenta13ae5ad9dc70075740f11139f1db96cc79faa59 (diff)
downloadzix-0ab62e29db1209a9e0a2d9261d4c7d85a8ca65da.tar.gz
zix-0ab62e29db1209a9e0a2d9261d4c7d85a8ca65da.tar.bz2
zix-0ab62e29db1209a9e0a2d9261d4c7d85a8ca65da.zip
Fix inappropriate use of PRIuPTR for size_t
-rw-r--r--meson.build1
-rw-r--r--test/test_btree.c2
2 files changed, 1 insertions, 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);