summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2013-04-14 14:13:08 +0200
committerAndrea Canciani <ranma42@gmail.com>2013-04-14 14:14:32 +0200
commit760060f67642f90b12eced3b45cf6ba4e99fc128 (patch)
tree76bbc47a01fce62e48df927aa8c3d071e75ea3e0
parent4fa4e5e0bdf7d05945c6139b845e45fb4492a56e (diff)
hashtable: Silence unused variable warnings
The i variable is never used and (as expected) compilers warn about this. Fixed by removing the variable declaration.
-rw-r--r--hashtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hashtable.h b/hashtable.h
index 70bba2c..0e6d075 100644
--- a/hashtable.h
+++ b/hashtable.h
@@ -281,7 +281,7 @@ _simpledata_hashtable_size (size_t count, int shift)
visibility int \
prefix##_init (prefix##_t *hashtable, size_t num_elements) \
{ \
- size_t i, num_slots; \
+ size_t num_slots; \
prefix##_slot_t *slots; \
\
/* Aim to a load of 50% or less */ \