Avoid many "variable 'Sub' set but not used [-Wunused-but-set-variable]" warnings
authorDuncan Sands <baldrick@free.fr>
Thu, 10 Jun 2010 15:06:05 +0000 (15:06 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 10 Jun 2010 15:06:05 +0000 (15:06 +0000)
commit39dea6ff768098f33da8441b8323100f68999573
tree1cff8aeb253ef1c042f8d38860ab8ea566d0257d
parent345b378309eabd74a7a43f095dca9a4894bc371e
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105788 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/SymbolTableListTraits.h