Silence "logical or of equal expressions" error from GCC 12
Causes compilation to fail because of -Werror. Fixed in the same way as in commit 6b985fb9, but a better solution should be found.
According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69602, has been acknowledged as a problem since GCC 6.