Fix -Asserts warnings.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 13 Apr 2010 23:34:11 +0000 (23:34 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 13 Apr 2010 23:34:11 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101191 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ImmutableSet.h
utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h

index 65e70e279ab32e64c4d255d3aa834ee9e3416a07..70c3caf2a06117aadd75224250de4af3a4901612 100644 (file)
@@ -189,6 +189,8 @@ public:
   unsigned verify() const {
     unsigned HL = getLeft() ? getLeft()->verify() : 0;
     unsigned HR = getRight() ? getRight()->verify() : 0;
+    (void) HL;
+    (void) HR;
 
     assert(getHeight() == ( HL > HR ? HL : HR ) + 1
             && "Height calculation wrong");
index f98af0b123bdf291fc8b3ee9c55b28ce6c8ef819..d4c7a39b0ec1d177a47c0e819f3bf01552b42e91 100644 (file)
@@ -176,6 +176,7 @@ class linked_ptr {
   // Sole ownership by this linked_ptr object is required.
   T* release() {
     bool last = link_.depart();
+    (void) last;
     assert(last);
     T* v = value_;
     value_ = NULL;