https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95767
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- -Wduplicated-cond warns about similar things, but not in this case, because it thinks that the condition has side-effects.