userformat_want_item(): mark unused parameter

This function is used as a callback to strbuf_expand(), so it must conform to the correct interface. But naturally it doesn't need to touch its "sb" parameter, since it is only examining the placeholder string, and not actually writing any output. So mark the unused parameter to silence -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Feb 24, 2023 at 01:39 UTC 1bff855419b0cb338e7ef53b77f99207704bf63e
1 file changed +2 -1
pretty.c
+2 -1
@@ -1857,7 +1857,8 @@ static size_t format_commit_item(struct strbuf *sb, /* in UTF-8 */
1857 return consumed + 1;
1858 }
1859
1860 -static size_t userformat_want_item(struct strbuf *sb, const char *placeholder,
1860 +static size_t userformat_want_item(struct strbuf *sb UNUSED,
1861 + const char *placeholder,
1862 void *context)
1863 {
1864 struct userformat_want *w = context;