[llvm-commits] [llvm] r101191 - in /llvm/trunk: include/llvm/ADT/ImmutableSet.h utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h

Daniel Dunbar daniel at zuster.org
Tue Apr 13 16:34:11 PDT 2010


Author: ddunbar
Date: Tue Apr 13 18:34:11 2010
New Revision: 101191

URL: http://llvm.org/viewvc/llvm-project?rev=101191&view=rev
Log:
Fix -Asserts warnings.

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

Modified: llvm/trunk/include/llvm/ADT/ImmutableSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableSet.h?rev=101191&r1=101190&r2=101191&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableSet.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableSet.h Tue Apr 13 18:34:11 2010
@@ -189,6 +189,8 @@
   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");

Modified: llvm/trunk/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h?rev=101191&r1=101190&r2=101191&view=diff
==============================================================================
--- llvm/trunk/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h (original)
+++ llvm/trunk/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h Tue Apr 13 18:34:11 2010
@@ -176,6 +176,7 @@
   // Sole ownership by this linked_ptr object is required.
   T* release() {
     bool last = link_.depart();
+    (void) last;
     assert(last);
     T* v = value_;
     value_ = NULL;





More information about the llvm-commits mailing list