------- Comment #7 from gerald at pfeifer dot com 2010-05-01 16:47 ------- (In reply to comment #4) > I think this applies to 4.3 as well, as the following code does only warn in > the second function:
The current snapshot mentioned above now warns as follows: y.c: In function 'oldstyle': y.c:5:10: warning: variable 'foolen' set but not used [-Wunused-but-set-variable] y.c: In function 'newstyle': y.c:19:16: warning: unused variable 'foolen' [-Wunused-variable] In other words, it catches both cases. Based on this comment, and the previous, which has the original testcase covered, I am marking this report as FIXED based on the good work Jakub has done. -- gerald at pfeifer dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gerald at pfeifer dot com, | |jakub at redhat dot com Status|NEW |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8045