From: Junio C Hamano Date: Mon, 09 Mar 2026 00:04:49 GMT Subject: Re: [PATCH 3/5] parseopt: autocorrect mistyped subcommands Message-ID: In-Reply-To: Jiamu Sun <39@barroit.sh> writes: > +static const char *autocorrect_subcmd(const char *cmd, > + struct string_list *cmds) > +{ > + struct autocorr autocorr = { 0 }; > + > + autocorr_resolve(&autocorr); > + > + if (autocorr.mode == AUTOCORR_NEVER || > + autocorr.mode == AUTOCORR_HINTONLY) > + return NULL; > + > + unsigned int min = -1; > + unsigned int ties = 0; > + struct string_list_item *cand; > + struct string_list_item *best = NULL; CodingGuidelines: -Wdeclaration-after-statement is here. Using "-1" as "the maximum value this unsigned type can represent" is somewhat misleading. Can't we avoid that?