Unexpected -Wconstant-logical-operand warning when compiled with c2x/gnu2x #80548
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
duplicate
Resolved as duplicate
Build with
-std=c17
or-std=gnu17
and below prints no error, but this emits warnings when built withc2x
orgnu2x
. Is this expected behaviour that reflects some changes in C23 or a bug?The text was updated successfully, but these errors were encountered: