https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91335
--- Comment #1 from Nathan Ridge <zeratul976 at hotmail dot com> --- (In reply to Nathan Ridge from comment #0) > As a result, the only way to fix the warning is to lift the variable into > the outer scope, which can be undesirable from a code style point of view: (Well, or I could add a "(void) f;" statement in the if body. Equally undesirable.)