Explorar el Código

Adjust definition of SMARTLIST_FOREACH_END() to enforce matching variable.

svn:r16597
Nick Mathewson hace 17 años
padre
commit
0711408c22
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)                   \