[llvm-commits] [llvm] r105788 - /llvm/trunk/include/llvm/SymbolTableListTraits.h

Chris Lattner clattner at apple.com
Fri Jun 11 12:59:22 PDT 2010


On Jun 10, 2010, at 8:06 AM, Duncan Sands wrote:

> Author: baldrick
> Date: Thu Jun 10 10:06:05 2010
> New Revision: 105788
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=105788&view=rev
> Log:
> Avoid many "variable 'Sub' set but not used [-Wunused-but-set-variable]" warnings
> with gcc-4.6.  The warning is wrong, since Sub *is* used (perhaps gcc is confused
> because the use of Sub is constant folded away?), but since it is trivial to avoid,
> and massively reduces the amount of warning spew, just workaround the wrong warning.

Hi Duncan,

If you haven't already, please file a bug against gcc for this so they have an opportunity to fix it.

-Chris



More information about the llvm-commits mailing list