mark lock holders with nodiscard
Summary: Acquiring a lock into an unused temporary is generally a bug. Anyone wanting to do this can suppress their compiler's warning by explicitly `static_cast`ing the lock holder to void. Reviewed By: vitaut Differential Revision: D15504563 fbshipit-source-id: 1033f6a1d4044b9698934b73eefebfe83602a2a5
Showing
Please register or sign in to comment