From: Michael J Gruber Date: Thu, 26 Mar 2026 15:22:50 GMT Subject: [PATCH 4/6] do not discard const: declare const where we stay const Message-ID: <5325f5cfb25765252c2aa197b239cd99a72d3f28.1774537954.git.git@grubix.eu> In-Reply-To: This may sound like the easiest case, but for non ISOC23 with non-const strchr() this involves an implicit cast to const. --- convert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert.c b/convert.c index a34ec6ecdc..eae36c8a59 100644 --- a/convert.c +++ b/convert.c @@ -1168,7 +1168,8 @@ static int ident_to_worktree(const char *src, size_t len, struct strbuf *buf, int ident) { struct object_id oid; - char *to_free = NULL, *dollar, *spc; + char *to_free = NULL; + const char *dollar, *spc; int cnt; if (!ident) -- 2.53.0.1195.g771ffcb452