]> git.ipfire.org Git - thirdparty/git.git/commit
clang: warn when the comma operator is used
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 27 Mar 2025 11:53:02 +0000 (11:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 29 Mar 2025 00:38:12 +0000 (17:38 -0700)
commit3db4cb987f114186744025432fc201bbea1ccc7b
treee7916262eb667789a9091fa1ce2465116effb592
parent88c91d7d742b802a8774383641f8d997cfd1cd0c
clang: warn when the comma operator is used

When compiling Git using `clang`, the `-Wcomma` option can be used to
warn about code using the comma operator (because it is typically
unintentional and wants to use the semicolon instead).

Helped-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.dev
meson.build