From 97da3a13f23d4b8658ae7b163cd04c72e949ca79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 11 May 2021 19:38:21 +0200 Subject: [PATCH] Fix ftbfs on Fedora 34 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: ordered comparison of pointer with integer zero (‘snd_mixer_t*’ {aka ‘_snd_mixer*’} and ‘int’) Signed-off-by: François Andriot --- tderadio3/plugins/alsa-sound/alsa-sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tderadio3/plugins/alsa-sound/alsa-sound.cpp b/tderadio3/plugins/alsa-sound/alsa-sound.cpp index b37bdda..746eacf 100644 --- a/tderadio3/plugins/alsa-sound/alsa-sound.cpp +++ b/tderadio3/plugins/alsa-sound/alsa-sound.cpp @@ -908,7 +908,7 @@ static int mixer_dummy_callback(snd_mixer_t *, unsigned int /*mask*/, snd_mixer_ bool AlsaSoundDevice::openMixerDevice(snd_mixer_t *&mixer_handle, int card, bool reopen, TQTimer *timer, int timer_latency) { if (reopen) { - if (mixer_handle >= 0) + if (mixer_handle != NULL) closeMixerDevice(mixer_handle, card, SoundStreamID::InvalidID, NULL, /* force = */ true, timer); else return true;