• Joe Loser's avatar
    Simplify suppressing self-move warning (#946) · ca295dff
    Joe Loser authored
    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
    ca295dff
ExpectedTest.cpp 20.7 KB