Browse Source

Adjust definition of SMARTLIST_FOREACH_END() to enforce matching variable.

svn:r16597
Nick Mathewson 17 years ago
parent
commit
0711408c22
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/common/container.h

+ 1 - 0
src/common/container.h

@@ -204,6 +204,7 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
       var = (sl)->list[var ## _sl_idx];
       var = (sl)->list[var ## _sl_idx];
 
 
 #define SMARTLIST_FOREACH_END(var)              \
 #define SMARTLIST_FOREACH_END(var)              \
+    (void)var;                                  \
   } STMT_END
   } STMT_END
 
 
 #define SMARTLIST_FOREACH(sl, type, var, cmd)                   \
 #define SMARTLIST_FOREACH(sl, type, var, cmd)                   \