Fix unused-result values.

Original Author: asmok@google.com

Bug: None
Change-Id: I58e7097dbf13f761b92b9ce92e8044a8dc4bbc8c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/435361
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#46546}
This commit is contained in:
Mirko Bonadei 2025-12-19 07:39:46 +00:00 committed by WebRTC LUCI CQ
parent a8491b2b59
commit 4d18cf5eb2

View File

@ -495,7 +495,7 @@ TEST(RTCStatsTest, SetTimestamp) {
TEST(RTCStatsDeathTest, ValueOfUndefinedMember) {
RTCTestStats stats("testId", Timestamp::Micros(0));
EXPECT_FALSE(stats.m_int32.has_value());
EXPECT_DEATH(*stats.m_int32, "");
EXPECT_DEATH((void)*stats.m_int32, "");
}
TEST(RTCStatsDeathTest, InvalidCasting) {