https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61081

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Can we settle on just disabling the warning for system headers?  Those are kind
of out of control, but otherwise if you really want it, use ({ }) or make it a
static inline function (as glibc/kernel).  For static inlines there is no
performance penalty.
Note that the C++ FE has this warning for much more longer than the C FE,
completely removing it doesn't seem desirable to me.

Reply via email to