diff options
author | Rui Ueyama <ruiu@google.com> | 2014-01-23 19:01:25 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-01-23 19:01:25 +0000 |
commit | 415ae042c9a1964c7b61c39013cfc1b4a063f7d9 (patch) | |
tree | e2ed2fdf0e505273b8564a4790bdb0264a5be488 /include | |
parent | 63875e620fd821a77fe27d2b3212ac42ef3fc403 (diff) | |
download | llvm-415ae042c9a1964c7b61c39013cfc1b4a063f7d9.tar.gz llvm-415ae042c9a1964c7b61c39013cfc1b4a063f7d9.tar.bz2 llvm-415ae042c9a1964c7b61c39013cfc1b4a063f7d9.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/YAMLTraits.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Support/YAMLTraits.h b/include/llvm/Support/YAMLTraits.h index 1716a9d36e..89890e6ee3 100644 --- a/include/llvm/Support/YAMLTraits.h +++ b/include/llvm/Support/YAMLTraits.h @@ -1123,6 +1123,7 @@ operator<<(Output &yout, T &seq) { return seq.size(); \ } \ static _type& element(IO &io, std::vector<_type> &seq, size_t index) {\ + (void)flow; /* Remove this workaround after PR17897 is fixed */ \ if ( index >= seq.size() ) \ seq.resize(index+1); \ return seq[index]; \ |