Avoid [[nodiscard]] warning C4834 with MSVC 2019

Avoid a warning-as-error of MSVC 2019 due to a test ignoring a
[[nodiscard]] return value:

C4834: discarding return value of function with 'nodiscard' attribute
Change-Id: I6b70d85769f311814393412830f48d0d8bfef63d

Bug: webrtc:11275
Change-Id: I6b70d85769f311814393412830f48d0d8bfef63d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/164467
Commit-Queue: Patrik Höglund <phoglund@webrtc.org>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30226}
This commit is contained in:
Jerome Humbert 2020-01-13 08:09:41 +00:00 committed by Commit Bot
parent f5ecb5f22e
commit 2869638b4d

View File

@ -5639,7 +5639,7 @@ TEST(P2PTransportChannel, InjectIceController) {
MockIceControllerFactory factory;
FakePortAllocator pa(rtc::Thread::Current(), nullptr);
EXPECT_CALL(factory, RecordIceControllerCreated()).Times(1);
std::make_unique<cricket::P2PTransportChannel>(
auto dummy = std::make_unique<cricket::P2PTransportChannel>(
"transport_name",
/* component= */ 77, &pa,
/* async_resolver_factory = */ nullptr,