[PATCH] D50805: [Sema] Don't warn on returning the address of a label
Michael Kruse via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 16 08:47:23 PDT 2018
Meinersbur added a comment.
In https://reviews.llvm.org/D50805#1201956, @Quuxplusone wrote:
> If you added a new option `-Wret-addr-label` as suggested above (for a total patch of +2 lines), then is it accurate to say:
>
> - if `-Wret-addr-label` was enabled by default, we know of at least one codebase that would pass `-Wno-ret-addr-label` to their build
> - if `-Wret-addr-label` was disabled by default, we don't know of any codebases that would voluntarily enable it And if nobody would enable it voluntarily... might as well eliminate it, right?
That nobody here can name a project that would enable it, does not mean that there is none, or that projects will decide in the future to use it, or that individual developers temporarily use. Besides, it'd be enabled by `-Weverything`.
Repository:
rC Clang
https://reviews.llvm.org/D50805
More information about the cfe-commits
mailing list