]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix a benign warning from Clang 16 on FreeBSD
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 20 Sep 2023 10:46:38 +0000 (11:46 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 20 Sep 2023 10:46:38 +0000 (11:46 +0100)
rtp.c

diff --git a/rtp.c b/rtp.c
index c7c8efa3fee6477c7b83c57a9029509ef483ea52..0f35f0341a72045b31445b9db52c57383695d0c6 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -199,13 +199,10 @@ void *rtp_audio_receiver(void *arg) {
   float stat_mean = 0.0;
   float stat_M2 = 0.0;
 
-  int frame_count = 0;
   ssize_t nread;
   while (1) {
     nread = recv(conn->audio_socket, packet, sizeof(packet), 0);
 
-    frame_count++;
-
     uint64_t local_time_now_ns = get_absolute_time_in_ns();
     if (time_of_previous_packet_ns) {
       float time_interval_us = (local_time_now_ns - time_of_previous_packet_ns) * 0.001;