Skip to content

Commit

Permalink
suppress violation of clang-19 warning self-move
Browse files Browse the repository at this point in the history
Reviewed By: r-barnes

Differential Revision: D69755960

fbshipit-source-id: 99c9db0f5ff6b0d1ab334e6b3703b177ce6dd337
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Feb 18, 2025
1 parent 9705b18 commit b569023
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions folly/container/test/small_vector_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <folly/portability/GTest.h>
#include <folly/sorted_vector_types.h>

FOLLY_GNU_DISABLE_WARNING("-Wself-move")

using folly::small_vector;

using folly::small_vector_policy::policy_in_situ_only;
Expand Down
2 changes: 2 additions & 0 deletions folly/container/test/tape_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <folly/portability/GTest.h>
#include <folly/small_vector.h>

FOLLY_GNU_DISABLE_WARNING("-Wself-move")

namespace {

template <typename I>
Expand Down
2 changes: 2 additions & 0 deletions folly/memory/test/shared_from_this_ptr_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#include <folly/portability/GTest.h>

FOLLY_GNU_DISABLE_WARNING("-Wself-move")

struct SharedFromThisPtrTest : testing::Test {};

struct jabberwocky : std::enable_shared_from_this<jabberwocky> {
Expand Down
2 changes: 2 additions & 0 deletions folly/test/ExpectedTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include <folly/lang/Keep.h>
#include <folly/portability/GTest.h>

FOLLY_GNU_DISABLE_WARNING("-Wself-move")

using std::shared_ptr;
using std::unique_ptr;

Expand Down
2 changes: 2 additions & 0 deletions folly/test/OptionalTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>

FOLLY_GNU_DISABLE_WARNING("-Wself-move")

using std::shared_ptr;
using std::unique_ptr;

Expand Down

0 comments on commit b569023

Please sign in to comment.