[Zodb-checkins] CVS: Zope3/lib/python/Persistence/BTrees - BTreeTemplate.c:1.1.2.26 BucketTemplate.c:1.1.2.25

Jeremy Hylton jeremy@zope.com
Fri, 7 Jun 2002 13:05:28 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv21168/BTrees

Modified Files:
      Tag: Zope-3x-branch
	BTreeTemplate.c BucketTemplate.c 
Log Message:
Silence compiler warnings.


=== Zope3/lib/python/Persistence/BTrees/BTreeTemplate.c 1.1.2.25 => 1.1.2.26 ===
     if (self->data) {
         int i;
-        if (len > 0) /* 0 is special because key 0 is trash */
+        if (len > 0) { /* 0 is special because key 0 is trash */
             Py_DECREF(self->data[0].child);
+	}
 
         for (i = 1; i < len; i++) {
 #ifdef KEY_TYPE_IS_PYOBJECT


=== Zope3/lib/python/Persistence/BTrees/BucketTemplate.c 1.1.2.24 => 1.1.2.25 ===
     }
 
+    /* Silence compiler warning about unused variable len for the case
+       when neither key nor value is an object, i.e. II. */
+    (void)len;
+
     if (self->keys) {
 #ifdef KEY_TYPE_IS_PYOBJECT
         int i;