Created attachment 329870 [details, diff] gfortran-unused-mod-namelist.patch I reported a bug to the upstream gcc Bugzilla (gfortran-4.7.2 -Wall gives a warning about unused module variables when those variables are only used in a namelist, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55352) and adapted their patch for use with the Gentoo ebuild sys-devel/gcc-4.7.2.ebuild. This patch is attached and could be used (for gcc-4.7.2-r1?) until the issue is fixed upstream.
we'll merge it once it gets committed to mainline
Bug will be fixed upstream in gcc-4.7.3 and 4.8.0: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55352#c10
do you want this in 4.7.2 ? or are you happy with just waiting for 4.7.3 ?
(In reply to comment #3) > do you want this in 4.7.2 ? or are you happy with just waiting for 4.7.3 ? I'm fine with waiting - I added the patch to my local overlay and everything works: http://astrofloyd.wordpress.com/2012/12/25/erroneous-gfortran-warning-of-unused-module-variable-when-variable-is-only-used-in-namelist/
(In reply to comment #4) > (In reply to comment #3) > > do you want this in 4.7.2 ? or are you happy with just waiting for 4.7.3 ? > > I'm fine with waiting - I added the patch to my local overlay and everything > works: Sorry, link should be the original one: http://astrofloyd.wordpress.com/2012/11/18/erroneous-gfortran-warning-of-unused-module-variable-when-variable-is-only-used-in-namelist/