https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116313
--- Comment #1 from Florian Weimer <fw at gcc dot gnu.org> --- The warning for typeof in this context seems bogus as well because it follows the evaluation rules for sizeof: “ The operand of ‘typeof’ is evaluated for its side effects if and only if it is an expression of variably modified type or the name of such a type. ”