From 3ae4c0764fcfae2e8601d074950130a695d911e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 9 Sep 2024 21:47:23 +0200 Subject: [PATCH] Mark non-exported functions as static MSVC throws a warning. --- cutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cutils.c b/cutils.c index 56982df..396bc71 100644 --- a/cutils.c +++ b/cutils.c @@ -600,7 +600,7 @@ char const digits36[36] = "0123456789abcdefghijklmnopqrstuvwxyz"; else \ buf = (buf << 8) | (c) -size_t u7toa_shift(char dest[minimum_length(8)], uint32_t n) +static size_t u7toa_shift(char dest[minimum_length(8)], uint32_t n) { size_t len = 1; uint64_t buf = 0; @@ -615,7 +615,7 @@ size_t u7toa_shift(char dest[minimum_length(8)], uint32_t n) return len; } -size_t u07toa_shift(char dest[minimum_length(8)], uint32_t n, size_t len) +static size_t u07toa_shift(char dest[minimum_length(8)], uint32_t n, size_t len) { size_t i; dest += len;