Closed harrywong closed 7 years ago
Add one attribute to suppress this warning.
Hi after I changed to use the newest version, it warns this: .../libcuckoo/include/libcuckoo/cuckoohash_map.hh:1397:17: error: unused variable ‘new_bucket’ [-Werror=unused-variable] bucket &newbucket = buckets[new_bucket_i];
Thanks for pointing that out! Fixed by c3ab84a464830c798fbba54cbda0aabdcb65e611
When use GCC 7.1 to compile libcuckoo, it warns this: .../libcuckoo/include/libcuckoo/cuckoohash_map.hh: In member function ‘cuckoohash_map<Key, T, Hash, Pred, Alloc, SLOT_PER_BUCKET>::table_position cuckoohash_map<Key, T, Hash, Pred, Alloc, SLOT_PER_BUCKET>::cuckoo_insert_loop(cuckoohash_map<Key, T, Hash, Pred, Alloc, SLOT_PER_BUCKET>::hash_value, cuckoohash_map<Key, T, Hash, Pred, Alloc, SLOT_PER_BUCKET>::TwoBuckets&, K&)’:
.../libcuckoo/include/libcuckoo/cuckoohash_map.hh:1128:61: error: this statement may fall through
[-Werror=implicit-fallthrough=]
cuckoo_fast_double<LOCK_T, automatic_resize>(hp);