Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 415ae04

Browse files
committed
Suppress an annoying "unused variable" warning caused by bug 17897.
Clang says that "flow" is unused when building LLD. This patch suppresses it. Differential Revision: http://llvm-reviews.chandlerc.com/D2573 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199922 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 63875e6 commit 415ae04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/llvm/Support/YAMLTraits.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,7 @@ operator<<(Output &yout, T &seq) {
11231123
return seq.size(); \
11241124
} \
11251125
static _type& element(IO &io, std::vector<_type> &seq, size_t index) {\
1126+
(void)flow; /* Remove this workaround after PR17897 is fixed */ \
11261127
if ( index >= seq.size() ) \
11271128
seq.resize(index+1); \
11281129
return seq[index]; \

0 commit comments

Comments
 (0)