Simplify suppressing self-move warning (#946)
Summary: - A couple of tests pragma push/pop to avoid `-Wself-move` warning in code that does a move-assignment with itself. - Use `static_cast<T&&>` instead of `std::move` which will suppress the warning still without the need for pragma push/pop. Pull Request resolved: https://github.com/facebook/folly/pull/946 Reviewed By: Orvid Differential Revision: D10253159 Pulled By: yfeldblum fbshipit-source-id: 9d75db95018e6115a195f246dbd93b0a5935d80d
Showing
Please register or sign in to comment