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

[or-cvs] r16597: {tor} Adjust definition of SMARTLIST_FOREACH_END() to enforce matc (tor/trunk/src/common)



Author: nickm
Date: 2008-08-19 11:33:03 -0400 (Tue, 19 Aug 2008)
New Revision: 16597

Modified:
   tor/trunk/src/common/container.h
Log:
Adjust definition of SMARTLIST_FOREACH_END() to enforce matching variable.

Modified: tor/trunk/src/common/container.h
===================================================================
--- tor/trunk/src/common/container.h	2008-08-19 13:14:02 UTC (rev 16596)
+++ tor/trunk/src/common/container.h	2008-08-19 15:33:03 UTC (rev 16597)
@@ -204,6 +204,7 @@
       var = (sl)->list[var ## _sl_idx];
 
 #define SMARTLIST_FOREACH_END(var)              \
+    (void)var;                                  \
   } STMT_END
 
 #define SMARTLIST_FOREACH(sl, type, var, cmd)                   \