浏览代码

Adjust definition of SMARTLIST_FOREACH_END() to enforce matching variable.

svn:r16597
Nick Mathewson 17 年之前
父节点
当前提交
0711408c22
共有 1 个文件被更改,包括 1 次插入0 次删除
  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];
 
 #define SMARTLIST_FOREACH_END(var)              \
+    (void)var;                                  \
   } STMT_END
 
 #define SMARTLIST_FOREACH(sl, type, var, cmd)                   \