* adding -Wshadow-local and -Wshadow-compatible-local ?
@ 2015-12-11 23:42 Jim Meyering
2015-12-14 14:46 ` Diego Novillo
0 siblings, 1 reply; 2+ messages in thread
From: Jim Meyering @ 2015-12-11 23:42 UTC (permalink / raw)
To: gcc-patches, dnovillo
Hi Diego,
I noticed this patch that adds support for improved -Wshadow-related options:
[google] Add two new -Wshadow warnings (issue4452058)
https://gcc.gnu.org/ml/gcc-patches/2011-04/msg02317.html
https://codereview.appspot.com/4452058/
Here are the proposed descriptions:
-Wshadow-local which warns if a local variable shadows another local
variable or parameter,
-Wshadow-compatible-local which warns if a local variable shadows another
local variable or parameter whose type is compatible with that of the
shadowing variable.
Yet, I see no further discussion of them, other than Jason's review feedback.
Was this change deemed unsuitable for upstream gcc?
Thanks,
Jim
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: adding -Wshadow-local and -Wshadow-compatible-local ?
2015-12-11 23:42 adding -Wshadow-local and -Wshadow-compatible-local ? Jim Meyering
@ 2015-12-14 14:46 ` Diego Novillo
0 siblings, 0 replies; 2+ messages in thread
From: Diego Novillo @ 2015-12-14 14:46 UTC (permalink / raw)
To: Jim Meyering; +Cc: gcc-patches
On Fri, Dec 11, 2015 at 6:41 PM, Jim Meyering <jim@meyering.net> wrote:
>
> Hi Diego,
>
> I noticed this patch that adds support for improved -Wshadow-related options:
>
> [google] Add two new -Wshadow warnings (issue4452058)
> https://gcc.gnu.org/ml/gcc-patches/2011-04/msg02317.html
> https://codereview.appspot.com/4452058/
>
> Here are the proposed descriptions:
>
> -Wshadow-local which warns if a local variable shadows another local
> variable or parameter,
>
> -Wshadow-compatible-local which warns if a local variable shadows another
> local variable or parameter whose type is compatible with that of the
> shadowing variable.
>
> Yet, I see no further discussion of them, other than Jason's review feedback.
> Was this change deemed unsuitable for upstream gcc?
TBH, I do not remember. That patch is available in the google
branches, IIRC. I have no plans to pursue it for trunk. Feel free
to propose it again.
Diego.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-14 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-11 23:42 adding -Wshadow-local and -Wshadow-compatible-local ? Jim Meyering
2015-12-14 14:46 ` Diego Novillo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).