Re: [PATCH v2 2/3] docs: clarify cmd_psuh signature and explain UNUSED macro
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 17, 2025, 18:39 UTC
- Message-ID
- <xmqqa57bqdxt.fsf@gitster.g>
- In-Reply-To
- <xmqq34d3s6ed.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 14 quoted lines
> K Jayatheerth <jayatheerthkulkarni2005@gmail.com> writes: > >> The documentation previously omitted the UNUSED macro, >> which often led to confusion for new contributors >> when they encountered compiler warnings related to unused parameters. > > The above is not quite easy to reason about. It is more like we > wrote this document, and then later tightened the default compiler > warnings for developer builds. So "omitted" may technically be > correct, but it was more like "did not use it, because there was no > need". > > The sample program, as written, would not build for at least two > reasons:
"not" -> "no longer" to hint that the change in the environment, not a bug in the document, is the reason of breakage.
> - Since this document was first written, the calling convention > to subcommand implementation has changed, and now cmd_psuh() > needs to accept the third parameter, repository.
"third" -> "fourth"; I cannot count X-<.