]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix warnings when building without metadata
authorTucker Kern <tuckkern@gmail.com>
Fri, 13 Sep 2024 19:41:51 +0000 (13:41 -0600)
committerTucker Kern <tuckkern@gmail.com>
Fri, 13 Sep 2024 19:41:51 +0000 (13:41 -0600)
player.c

index a41ed3ef6b0b1f1186fcf7bb47ecc06b2f431480..4baef1a384f33fe4f0518fcc6fa46060c946178f 100644 (file)
--- a/player.c
+++ b/player.c
@@ -3318,6 +3318,13 @@ static void player_send_volume_metadata(bool vol_mode_both, double airplay_volum
       snprintf(dv, 127, "%.2f,%.2f,%.2f,%.2f", airplay_volume, 0.0, 0.0, 0.0);
     }
     send_ssnc_metadata('pvol', dv, strlen(dv), 1);
+#else
+  (void)vol_mode_both;
+  (void)airplay_volume;
+  (void)scaled_attenuation;
+  (void)max_db;
+  (void)min_db;
+  (void)hw_max_db;
 #endif
 }