From cb73b98e4c15cbcb59e97b5662994a94a067ad13 Mon Sep 17 00:00:00 2001 From: bri-prism <288398250+bri-prism@users.noreply.github.com> Date: Thu, 16 Jul 2026 23:58:35 +0100 Subject: [PATCH] test: fix -Werror=format in test-arg-parser download test common_remote_get_content() returns the HTTP status as long, but the skip-message printf used %d. Format it with %ld so the build does not fail under -Werror=format on the CUDA CI toolchain. --- tests/test-arg-parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-arg-parser.cpp b/tests/test-arg-parser.cpp index 57b415db43b9..a576844944a7 100644 --- a/tests/test-arg-parser.cpp +++ b/tests/test-arg-parser.cpp @@ -196,7 +196,7 @@ int main(void) { assert(str.find("llama.cpp") != std::string::npos); network_ok = true; } else { - printf(" good URL returned %d, no usable network -- skipping download tests\n\n", res.first); + printf(" good URL returned %ld, no usable network -- skipping download tests\n\n", res.first); } } catch (const std::exception & e) { printf(" good URL unreachable (%s) -- skipping download tests\n\n", e.what());