diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-08-19 15:33:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-08-19 15:33:03 +0000 |
commit | 0711408c2280b9b5c284061a81c9e34836429e7f (patch) | |
tree | 6624376aa4ce49197b5e200b168e19558a4c72d0 /src/common | |
parent | 369e3bc65627b946a0b13bf089e9d7de2464fff4 (diff) | |
download | tor-0711408c2280b9b5c284061a81c9e34836429e7f.tar.gz tor-0711408c2280b9b5c284061a81c9e34836429e7f.zip |
Adjust definition of SMARTLIST_FOREACH_END() to enforce matching variable.
svn:r16597
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/container.h | 1 |
1 files changed, 1 insertions, 0 deletions
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) \ |