https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96214
--- Comment #5 from Jonny Grant <jg at jguk dot org> --- I saw this similar one too:- https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options -Wduplicated-cond Warn about duplicated conditions in an if-else-if chain. For instance, warn for the following code: