folly: OptionalTest.cpp: suppress a -Wself-move warning
authorJim Meyering <meyering@fb.com>
Fri, 13 Feb 2015 22:37:55 +0000 (14:37 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:20:43 +0000 (19:20 -0800)
commitcb2d6c84271625f02f00df178688113d2ea1e336
tree68ca90c783f2c40d4e933673d5d90130b573c4b4
parenta3259f635f9b2fb5a109672c0f16d4a497fa3b67
folly: OptionalTest.cpp: suppress a -Wself-move warning

Summary:
Clang's new -Wself-move warning dings this code:

b = std::move(b);

But in this case, that is a deliberate test of
this capability, so we suppress that particular
warning for the duration of this small test function.

Test Plan:
Run this and note that it now compiles: (it passes the tests, too)
fbconfig --clang --with-project-version=clang:dev -r folly/test:optional_test && fbmake dbgo

Reviewed By: watashi@fb.com

Subscribers: folly-diffs@, yfeldblum

FB internal diff: D1849689

Tasks: 6244745

Signature: t1:1849689:1423877932:4f479d682bd8ba97dcabed7fc29ce0a22c013969

@build-break (using this to work around bogus push failure: https://phabricator.fb.com/P19730606)
folly/test/OptionalTest.cpp