Kaynağa Gözat

Adjust definition of SMARTLIST_FOREACH_END() to enforce matching variable.

svn:r16597
Nick Mathewson 16 yıl önce
ebeveyn
işleme
0711408c22
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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)                   \