Commit 27e1f366 authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

Rename variable to avoid shadowing warning.

Summary: Variable shadowing warning under specific compiler flags. This works around that by renaming.

Reviewed By: yfeldblum

Differential Revision: D6782706

fbshipit-source-id: 60f379f301a88ab370b056469693a198439d1b11
parent dee041f9
...@@ -668,7 +668,8 @@ void hazptr_domain::retire(T* obj, D reclaim) { ...@@ -668,7 +668,8 @@ void hazptr_domain::retire(T* obj, D reclaim) {
struct hazptr_retire_node : hazptr_obj { struct hazptr_retire_node : hazptr_obj {
std::unique_ptr<T, D> obj_; std::unique_ptr<T, D> obj_;
hazptr_retire_node(T* obj, D reclaim) : obj_{obj, std::move(reclaim)} {} hazptr_retire_node(T* retireObj, D toReclaim)
: obj_{retireObj, std::move(toReclaim)} {}
}; };
auto node = new hazptr_retire_node(obj, std::move(reclaim)); auto node = new hazptr_retire_node(obj, std::move(reclaim));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment