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.
This commit is contained in:
Lephenixnoir 2021-05-29 21:50:12 +02:00
parent 49a8669669
commit 3599134898
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 0 deletions

View File

@ -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);