From 0f72dec01c209ab1833c0603211cbab46fd8041d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 22 Jun 2024 19:04:14 -0400 Subject: Fix mismatched printf argument type --- test/meson.build | 1 - test/test_tree.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/meson.build b/test/meson.build index 128bf0b..308b562 100644 --- a/test/meson.build +++ b/test/meson.build @@ -52,7 +52,6 @@ if not meson.is_subproject() and get_option('lint') '--suppress=constParameterCallback', '--suppress=constParameterPointer', '--suppress=constVariablePointer', - '--suppress=invalidPrintfArgType_uint', '--suppress=knownConditionTrueFalse', '--suppress=selfAssignment', '--suppress=unreadVariable', diff --git a/test/test_tree.c b/test/test_tree.c index 5f093d3..fae6d85 100644 --- a/test/test_tree.c +++ b/test/test_tree.c @@ -21,7 +21,7 @@ #include #include -static uintptr_t seed = 1; +static size_t seed = 1; static int int_cmp(const void* a, const void* b, const void* ZIX_UNUSED(user_data)) @@ -237,7 +237,7 @@ main(int argc, char** argv) if (argc > 2) { seed = strtoul(argv[2], NULL, 10); } else { - seed = (uintptr_t)time(NULL); + seed = (size_t)time(NULL); } } -- cgit v1.2.1