]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Quieten an incorrect compiler warning
authorMike Brady <mikebrady@eircom.net>
Tue, 5 Feb 2019 12:18:16 +0000 (12:18 +0000)
committerMike Brady <mikebrady@eircom.net>
Tue, 5 Feb 2019 12:18:16 +0000 (12:18 +0000)
player.c

index ccae0795ba9fda2dd1c82c779037e0465a9c31a7..72a79ef8e0515cf34ef2886dbd3b34640f6bd489 100644 (file)
--- a/player.c
+++ b/player.c
@@ -2553,7 +2553,7 @@ void player_volume_without_notification(double airplay_volume, rtsp_conn_info *c
   // range has been specified
   // the range might imply that both hw and software mixers are needed, so calculate this
 
-  int32_t hw_max_db, hw_min_db;
+  int32_t hw_max_db = 0, hw_min_db = 0; // zeroed to quieten an incorrect uninitialised warning
   int32_t sw_max_db = 0, sw_min_db = -9630;
   if (config.output->parameters) {
     volume_mode = vol_hw_only;