Silence 'unused' warning.
authorBill Wendling <isanbard@gmail.com>
Thu, 19 Aug 2010 18:52:02 +0000 (18:52 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 19 Aug 2010 18:52:02 +0000 (18:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111539 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ADT/SmallVectorTest.cpp

index 991c7d6caac758e2095cc7d9ea2b724cd768a202..78dc393e5c18dfb9e70b47a46b8378d5f06ebe85 100644 (file)
@@ -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();
   }
 };