Closed GoogleCodeExporter closed 9 years ago
Preston - is there a way to disable this warning in xcode? I prefer to leave
the
parameter names as is as their current names convey their meanings very well.
Original comment by vladlosev
on 12 Nov 2009 at 7:31
Probably. I'll take a look.
Original comment by preston....@gmail.com
on 13 Nov 2009 at 12:17
This might help:
http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html
-Wno-shadow is the warning you want to disable. Thank you!
Original comment by fdej...@gmail.com
on 13 Nov 2009 at 12:44
Hi fdejako,
We do not build with -Wshadow enabled, and hence, we do not get the warnings
you listed when building the
Google Test Framework. I created a sample project using the framework and
couldn't reproduce the warning
UNTIL I specifically enable -Wshadow. I believe, please correct me if I'm
wrong, that the appropriate course
here would be for you to disable the -Wshadow warning option in your project or
target. It also goes by the
name "Hidden Local Variables" under the GCC Warnings tab.
Let me know if this resolves the issue for you,
Preston
Original comment by preston....@gmail.com
on 16 Nov 2009 at 11:15
While it is something I can live with, it's not ideal. I find this warning quite
useful, switching it off explicitly for certain files is possible, however.
Thanks
for looking into this.
Original comment by fdej...@gmail.com
on 16 Nov 2009 at 11:21
I'll look into this further. We'd like for you to be able to enable this
warning.
Original comment by preston....@gmail.com
on 16 Nov 2009 at 11:42
As this affects settings in users' projects, I think we should fix this. But it
is
not a high priority issue.
Original comment by vladlosev
on 16 Nov 2009 at 11:43
Fixed by Preston in r350.
Original comment by w...@google.com
on 16 Dec 2009 at 7:54
Original comment by w...@google.com
on 23 Dec 2009 at 7:07
Original issue reported on code.google.com by
fdej...@gmail.com
on 9 Nov 2009 at 3:08