From 0711408c2280b9b5c284061a81c9e34836429e7f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 19 Aug 2008 15:33:03 +0000 Subject: Adjust definition of SMARTLIST_FOREACH_END() to enforce matching variable. svn:r16597 --- src/common/container.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/common/container.h b/src/common/container.h index 70a593887f..6faad3435d 100644 --- a/src/common/container.h +++ b/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) \ -- cgit v1.2.3-54-g00ecf