aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/SmallVectorTest.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-08-19 18:52:02 +0000
committerBill Wendling <isanbard@gmail.com>2010-08-19 18:52:02 +0000
commitbfba2f1725f7118090e9adc46dd797f1af1e7138 (patch)
treec733819c7674ad4b3315faf7ae007e0e5b3c91e7 /llvm/unittests/ADT/SmallVectorTest.cpp
parent20cc2a42b884ef95a2ba5f7f2d4f88b2404d9dd3 (diff)
downloadllvm-bfba2f1725f7118090e9adc46dd797f1af1e7138.zip
llvm-bfba2f1725f7118090e9adc46dd797f1af1e7138.tar.gz
llvm-bfba2f1725f7118090e9adc46dd797f1af1e7138.tar.bz2
Silence 'unused' warning.
llvm-svn: 111539
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
-rw-r--r--llvm/unittests/ADT/SmallVectorTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/SmallVectorTest.cpp b/llvm/unittests/ADT/SmallVectorTest.cpp
index 991c7d6..78dc393 100644
--- a/llvm/unittests/ADT/SmallVectorTest.cpp
+++ b/llvm/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();
}
};