[vlc-commits] auhal: fix compilation warnings

Felix Paul Kühne git at videolan.org
Fri Jul 12 18:27:07 CEST 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Fri Jul 12 18:16:20 2019 +0200| [0966a84ef3124f19d6bf896870b1380eb276600b] | committer: Felix Paul Kühne

auhal: fix compilation warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0966a84ef3124f19d6bf896870b1380eb276600b
---

 modules/audio_output/auhal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 8005e27954..79af25f9f8 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -394,7 +394,7 @@ AudioDeviceSupportsDigital(audio_output_t *p_aout, AudioDeviceID i_dev_id)
 }
 
 static void
-ReportDevice(audio_output_t *p_aout, UInt32 i_id, char *name)
+ReportDevice(audio_output_t *p_aout, UInt32 i_id, const char *name)
 {
     char deviceid[10];
     sprintf(deviceid, "%i", i_id);
@@ -409,6 +409,7 @@ ReportDevice(audio_output_t *p_aout, UInt32 i_id, char *name)
 static bool
 AudioDeviceIsAHeadphone(audio_output_t *p_aout, AudioDeviceID i_dev_id)
 {
+    VLC_UNUSED(p_aout);
     UInt32 defaultSize = sizeof(AudioDeviceID);
 
     const AudioObjectPropertyAddress defaultAddr = {
@@ -494,7 +495,6 @@ RebuildDeviceList(audio_output_t * p_aout, UInt32 *p_id_exists)
     {
         CFStringRef device_name_ref;
         char *psz_name;
-        CFIndex length;
         UInt32 i_id = p_devices[i];
 
         int ret = AO_GET1PROP(i_id, CFStringRef, &device_name_ref,



More information about the vlc-commits mailing list