On 12/06/11 02:21, Mark Kettenis wrote:
From: Alan Coopersmith<[email protected]>
Date: Mon, 5 Dec 2011 20:36:32 -0800
It doesn't like local variables with the same name as system library
functions.
Which IMHO is totally ridiculous and makes -Wshadow useless, since it
means that any namespace pollution from system headers will result in
warnings. The GCC developers acknowledged that and future GCC
versions will not warn if the shadowed identifier is from a system
header.
I vote for not "fixing" this type of shadowing.
If they're fixing gcc, then that works for me, and I'll just ignore
these until then.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Platform Engineering: X Window System
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel