https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102867
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-10-21 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. I wonder if it is possible to omit the warning from chained conditions that are from the same macro expansion. That is, warn when the macro is just #define SECTION_NAME_VALID(X) ((X) != NULL) but not when there's additional conditions on it.