diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-08-19 18:52:02 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-08-19 18:52:02 +0000 |
commit | 2d60f87f85f076090426e6e0dac37aa90b8116f3 (patch) | |
tree | 964d98d4930935c470149bcc7cd42504bf377c39 /unittests/ADT/SmallVectorTest.cpp | |
parent | 03450a77e4909dcfec50000b489f111a4596931d (diff) | |
download | external_llvm-2d60f87f85f076090426e6e0dac37aa90b8116f3.zip external_llvm-2d60f87f85f076090426e6e0dac37aa90b8116f3.tar.gz external_llvm-2d60f87f85f076090426e6e0dac37aa90b8116f3.tar.bz2 |
Silence 'unused' warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT/SmallVectorTest.cpp')
-rw-r--r-- | unittests/ADT/SmallVectorTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unittests/ADT/SmallVectorTest.cpp b/unittests/ADT/SmallVectorTest.cpp index 991c7d6..78dc393 100644 --- a/unittests/ADT/SmallVectorTest.cpp +++ b/unittests/ADT/SmallVectorTest.cpp @@ -13,6 +13,7 @@ #include "gtest/gtest.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/Support/Compiler.h" #include <stdarg.h> #include <list> @@ -76,7 +77,8 @@ public: return c0.getValue() == c1.getValue(); } - friend bool operator!=(const Constructable & c0, const Constructable & c1) { + friend bool ATTRIBUTE_UNUSED + operator!=(const Constructable & c0, const Constructable & c1) { return c0.getValue() != c1.getValue(); } }; |