[PATCH] Suppress an annoying "unused variable" warning caused by bug 17897.
Rui Ueyama
ruiu at google.com
Fri Jan 17 17:33:00 PST 2014
Hi rafael.espindola,
Clang says that "flow" is unused when building LLD. This patch suppresses it.
http://llvm-reviews.chandlerc.com/D2573
Files:
include/llvm/Support/YAMLTraits.h
Index: include/llvm/Support/YAMLTraits.h
===================================================================
--- include/llvm/Support/YAMLTraits.h
+++ include/llvm/Support/YAMLTraits.h
@@ -1123,6 +1123,7 @@
return seq.size(); \
} \
static _type& element(IO &io, std::vector<_type> &seq, size_t index) {\
+ (void)flow; \
if ( index >= seq.size() ) \
seq.resize(index+1); \
return seq[index]; \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2573.1.patch
Type: text/x-patch
Size: 760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140117/e132bd85/attachment.bin>
More information about the llvm-commits
mailing list