From 5d76ddb466eb2b40b9ae17c48591fc166dcb66cb Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 28 Mar 2022 18:12:03 +1100 Subject: [PATCH] osxcoreaudio: fix unused-but-set warning ../sys/osxaudio/gstosxcoreaudio.c:480:18: error: variable 'interleaved' set but not used [-Werror,-Wunused-but-set-variable] gboolean sign, interleaved; ^ Part-of: --- subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c index c432ee6..08a52e4 100644 --- a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c +++ b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c @@ -477,7 +477,7 @@ gst_core_audio_asbd_to_caps (AudioStreamBasicDescription * asbd, GstAudioFormat format = GST_AUDIO_FORMAT_UNKNOWN; guint rate, channels, bps, endianness; guint64 channel_mask; - gboolean sign, interleaved; + gboolean sign; GstAudioChannelPosition pos[GST_OSX_AUDIO_MAX_CHANNEL]; if (asbd->mFormatID != kAudioFormatLinearPCM) { @@ -505,8 +505,6 @@ gst_core_audio_asbd_to_caps (AudioStreamBasicDescription * asbd, endianness = asbd->mFormatFlags & kAudioFormatFlagIsBigEndian ? G_BIG_ENDIAN : G_LITTLE_ENDIAN; sign = asbd->mFormatFlags & kAudioFormatFlagIsSignedInteger ? TRUE : FALSE; - interleaved = asbd->mFormatFlags & kAudioFormatFlagIsNonInterleaved ? - TRUE : FALSE; if (asbd->mFormatFlags & kAudioFormatFlagIsFloat) { if (bps == 32) { -- 2.7.4