* Andrew Pinski:

> On Fri, Nov 15, 2024 at 9:13 AM Florian Weimer <fwei...@redhat.com> wrote:
>>
>> This is another recent GCC extension whose use is apparently
>> difficult to spot in code reviews.
>>
>> The name of the option is due to Jonathan Wakely.  Part of it
>> could apply to C++ as well (for labels at the end of a compound
>> statement).
>
> I like this idea of having an option here, though I am not a fan of
> the name of the option. When I saw `free`, I was not thinking of free
> flowing or free radicals but rather free as price (beer).
> I can't think of a good alternative though.

If we don't see C++ support coming, we could use -Wc23-labels.
Otherwise -Wflexible-labels, -Wunrestricted-labels, -Wenhanced-labels …
Or separate options: -Wend-labels, -Wdeclaration-labels.  But I don't
think anyone would want to treat those two cases differently.

> Note clang just uses Wc++23-extensions/Wc23-extensions (which is
> similar to GCC's Wc11-c23-compat) and does not seem to have another
> option to enable/disable this specific one.

Indeed, I couldn't find a more specific option, either.

Thanks,
Florian

Reply via email to