Remove set but otherwise unused variables

Recent Clang versions have enhanced -Wunused-but-set-variable which now
warns about this.

Bug: chromium:1309955
Change-Id: Ie70df85f5a6d2cbabb4e10960bfd926ff7bf32cb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/257162
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/main@{#36381}
This commit is contained in:
Hans Wennborg
2022-03-30 14:15:51 +02:00
committed by WebRTC LUCI CQ
parent 440eeaa963
commit 73ef48cf05
2 changed files with 0 additions and 4 deletions

View File

@ -46,7 +46,6 @@ void UnhandledPacketsBuffer::BackfillPackets(
start = insert_pos_;
}
size_t count = 0;
std::vector<PacketWithMetadata> remaining;
remaining.reserve(kMaxStashedPackets);
for (size_t i = 0; i < buffer_.size(); ++i) {
@ -56,7 +55,6 @@ void UnhandledPacketsBuffer::BackfillPackets(
// scheme.
const uint32_t ssrc = buffer_[pos].ssrc;
if (absl::c_linear_search(ssrcs, ssrc)) {
++count;
consumer(ssrc, buffer_[pos].packet_time_us, buffer_[pos].packet);
} else {
remaining.push_back(buffer_[pos]);

View File

@ -225,7 +225,6 @@ void NetEqDecodingTest::WrapTest(uint16_t start_seq_no,
// Insert speech for 2 seconds.
const int kSpeechDurationMs = 2000;
int packets_inserted = 0;
uint16_t last_seq_no;
uint32_t last_timestamp;
bool timestamp_wrapped = false;
@ -240,7 +239,6 @@ void NetEqDecodingTest::WrapTest(uint16_t start_seq_no,
if (drop_seq_numbers.find(seq_no) == drop_seq_numbers.end()) {
// This sequence number was not in the set to drop. Insert it.
ASSERT_EQ(0, neteq_->InsertPacket(rtp_info, payload));
++packets_inserted;
}
NetEqNetworkStatistics network_stats;
ASSERT_EQ(0, neteq_->NetworkStatistics(&network_stats));