Re: [PATCH v2 00/10] Avoid the comma operator
On Tue, Mar 25, 2025 at 11:32:04PM +0000, Johannes Schindelin via GitGitGadget wrote:
Show 10 quoted lines
> The comma operator
> [https://en.cppreference.com/w/c/language/operator_other#Comma_operator] is
> rarely used in C anymore, and typically indicates a typo. Just like in these
> instances, where a semicolon was meant to be used, as there is no need to
> discard the first statement's result here.
>
> Changes since v1:
>
> * Use -Wcomma when compiling with clang and with DEVELOPER=1.
> * Address the remaining instances pointed out by clang (and by Phillip).
Thanks for all of these fixes!
Patrick