efficient / libcuckoo

A high-performance, concurrent hash table
Other
1.61k stars 275 forks source link

Rename variable in cuckoopath_move() to avoid shadowing warning. #105

Closed toojays closed 6 years ago

toojays commented 6 years ago

When compiling with -Wshadow enabled, GCC 8 complains: libcuckoo/cuckoohash_map.hh:1369:23: warning: declaration of ‘bucket’ shadows a previous local [-Wshadow] const size_type bucket = cuckoo_path[0].bucket; ^~ libcuckoo/cuckoohash_map.hh:1002:44: note: shadowed declaration is here using bucket = typename buckets_t::bucket; ^ This commit renames "bucket" to "bucket_i" within cuckoopath_move() to silence this warning.

Closes: #104

manugoyal commented 6 years ago

Thanks, lgtm!