diff options
author | Andrea Canciani <ranma42@gmail.com> | 2013-04-14 14:13:08 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2013-04-14 14:14:32 +0200 |
commit | 760060f67642f90b12eced3b45cf6ba4e99fc128 (patch) | |
tree | 76bbc47a01fce62e48df927aa8c3d071e75ea3e0 | |
parent | 4fa4e5e0bdf7d05945c6139b845e45fb4492a56e (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.h | 2 |
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 */ \ |