Created attachment 272601 [details, diff] silence -Wunused-but-set-variable GCC warnings GCC-4.6.0 has enabled -Wunused-but-set-variable warning by default, which can lead to very 'noisy' output when compiling Linux sources, and it can lead to compilation failure if -Werror flag is enabled (default for serveral archs). (bug 363935) I'm not sure if this bug should block GCC 4.6 Porting (bug 346809). This patch will probably be merged in 2.6.40, and maybe GCC-4.6.0 will still be masked, but if anyone wants to test it, they may have problems when compiling the kernel. Btw, @QA: -Werror is enabled by default (and in many places without a CONFIG option to disable it) for compiling quite a lot of kernel code. Should I file a relevant bug to be tracked by bug 260867 ?. Thanks.
I don't think this is related to either QA or gcc-porting teams. I am CCing all the kernel sources maintainers. They may be interested in this patch.
As for openvz sources they are based on 2.6.32 kernel so I guess general suggestion will be not to use newer gcc-4.6 (like for 2.6.18 kernels only gcc-4.1 is supported). So currently I'm include to keep things as they are.
Created attachment 273859 [details, diff] silence -Wunused-but-set-variable GCC warnings
Created attachment 273861 [details, diff] silence -Wunused-but-set-variable GCC warnings for 2.6.39 This one applies to 2.6.39 kernels, while the previous one applies to all the kernels currently in portage(2.6.32 - 2.6.38).
This will be in gentoo-sources-2.6.39 very soon(tm) and I will bring it to future releases of gentoo-sources .38 and .37 and .32 Thanks, Stratos!
Can be closed when gentoo-sources-2.6.37-r6 is released
Release in gentoo-sources-2.6.37-r6