From 3599134898bff8c7b288b521f8a7d609155cdd2e Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 29 May 2021 21:50:12 +0200 Subject: [PATCH] string: mark makenstr as unused This function will be relevant only if we ever optimize some size-limited string function in assembler, which would warrant the user of memarray to validate size/alignment combinations. --- src/string/misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/string/misc.c b/src/string/misc.c index bf4a9fc..513b3a8 100644 --- a/src/string/misc.c +++ b/src/string/misc.c @@ -13,6 +13,7 @@ static size_t makestr(char *buf, size_t size) } /* Make a string of size slightly smaller than size bytes (including NUL) */ +__attribute__((unused)) static size_t makenstr(char *buf, size_t size) { size_t n = max(3 * size / 4, 4);