mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
alsa-mixer: Use pa_assert_not_reached()
get rid of the following warning when compiling with NDEBUG: modules/alsa/alsa-mixer.c: In function 'element_is_subset': modules/alsa/alsa-mixer.c:3125:18: warning: 'a_limit' may be used uninitialized in this function [-Wmaybe-uninitialized] long a_limit; Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
09a3d904a1
commit
275ffb3657
1 changed files with 1 additions and 2 deletions
|
@ -3155,8 +3155,7 @@ static bool element_is_subset(pa_alsa_element *a, pa_alsa_element *b, snd_mixer_
|
|||
else if (a->volume_use == PA_ALSA_VOLUME_MERGE)
|
||||
a_limit = a->volume_limit;
|
||||
else
|
||||
/* This should never be reached */
|
||||
pa_assert(false);
|
||||
pa_assert_not_reached();
|
||||
|
||||
if (a_limit > b->volume_limit)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue