[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r13112: Fix policies.c build on gcc 4.2 with warnings. (in tor/trunk: . src/or)



Author: nickm
Date: 2008-01-12 00:52:59 -0500 (Sat, 12 Jan 2008)
New Revision: 13112

Modified:
   tor/trunk/
   tor/trunk/src/or/policies.c
Log:
 r17580@catbus:  nickm | 2008-01-11 20:40:30 -0500
 Fix policies.c build on gcc 4.2 with warnings.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r17580] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/policies.c
===================================================================
--- tor/trunk/src/or/policies.c	2008-01-11 16:11:32 UTC (rev 13111)
+++ tor/trunk/src/or/policies.c	2008-01-12 05:52:59 UTC (rev 13112)
@@ -651,7 +651,8 @@
   for (i = 0; i < smartlist_len(dest)-1; ++i) {
     ap = smartlist_get(dest, i);
     for (j = i+1; j < smartlist_len(dest); ++j) {
-      tor_assert(j > i);
+      // tor_assert(j > i); // j starts out at i+1; j only increases; i only
+      //                    // decreases.
       tmp = smartlist_get(dest, j);
       if (ap->policy_type != tmp->policy_type) {
         if (addr_policy_intersects(ap, tmp))