test/read_mixer: another kludge to work around -Wnull-dereference

This commit is contained in:
Max Kellermann 2018-01-23 16:42:25 +01:00
parent f762e8034f
commit ea66cdd6a5

View File

@ -53,7 +53,11 @@ try {
NullMixerListener mixer_listener;
Mixer *mixer = mixer_new(event_loop, alsa_mixer_plugin,
*(AudioOutput *)nullptr,
/* ugly dangerous dummy pointer to
make the compiler happy; this
works with most mixers, because
they don't need the AudioOutput */
*(AudioOutput *)0x1,
mixer_listener,
ConfigBlock());