Skip to content

Commit

Permalink
fix violations of warning uninitialized in UtilityTest
Browse files Browse the repository at this point in the history
Reviewed By: Gownta

Differential Revision: D65737540

fbshipit-source-id: ccee1153c98a60c268fe6543bcdac10715cde3da
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Nov 19, 2024
1 parent 797c75e commit 38a52e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third-party/folly/src/folly/test/UtilityTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ template class TestCopyMove<true, true>;

TEST_F(UtilityTest, MoveOnly) {
class FooBar : folly::MoveOnly {
int a;
[[maybe_unused]] int a = 0;
};

static_assert(
Expand All @@ -284,7 +284,7 @@ TEST_F(UtilityTest, MoveOnly) {

TEST_F(UtilityTest, NonCopyableNonMovable) {
class FooBar : folly::NonCopyableNonMovable {
int a;
[[maybe_unused]] int a = 0;
};

static_assert(
Expand Down

0 comments on commit 38a52e8

Please sign in to comment.