Skip to content

Commit

Permalink
Fix "ignoring return value" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
baranovmv committed Nov 26, 2023
1 parent 383fc3b commit 26cd1b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tests/roc_audio/test_depacketizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,11 @@ TEST(depacketizer, timestamp_fract_frame_per_packet) {
core::nanoseconds_t capt_ts =
Now + SampleSpecs.samples_overall_2_ns(SamplesPerPacket);
// 1st packet in the frame has 0 capture ts, and the next
queue.write(new_packet(encoder, StartTimestamp, 0.1f, 0));
queue.write(
new_packet(encoder, StartTimestamp + SamplesPerPacket / NumCh, 0.1f, capt_ts));
CHECK_EQUAL(status::StatusOK,
queue.write(new_packet(encoder, StartTimestamp, 0.1f, 0)));
CHECK_EQUAL(status::StatusOK,
queue.write(new_packet(encoder, StartTimestamp + SamplesPerPacket / NumCh,
0.1f, capt_ts)));
expect_output(dp, SamplesPerFrame, 0.1f, Now);
}

Expand Down

0 comments on commit 26cd1b1

Please sign in to comment.