Skip to content

Commit f285a05

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Enable -Wunused-value in glean/PACKAGE +1
Summary: This diff enables compilation warning flags for the directory in question. Further details are in [this workplace post](https://fb.workplace.com/permalink.php?story_fbid=pfbid02XaWNiCVk69r1ghfvDVpujB8Hr9Y61uDvNakxiZFa2jwiPHscVdEQwCBHrmWZSyMRl&id=100051201402394). This is a low-risk diff. There are **no run-time effects** and the diff has already been observed to compile locally. **If the code compiles, it work; test errors are spurious.** Differential Revision: D70282465 fbshipit-source-id: 418812764823c9581bd20351ccd012588eb888d0
1 parent 04d22e9 commit f285a05

File tree

1 file changed

+2
-2
lines changed
  • glean/lang/clang/tests/smoke-xlang

1 file changed

+2
-2
lines changed

glean/lang/clang/tests/smoke-xlang/test.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void thriftCaller() {
2424
auto client = facebook::servicerouter::cpp2::getClientFactory().getSRClientUnique<SomeService>("dummy.tier");
2525
client->sync_someFunction(response, request);
2626
response.struct_field_1().value();
27-
SomeEnum::EnumValue0;
27+
std::ignore = SomeEnum::EnumValue0;
2828
smoke_constants::SOME_CONST();
29-
smoke_constants::SOME_CONST_;
29+
std::ignore = smoke_constants::SOME_CONST_;
3030
}

0 commit comments

Comments
 (0)