Commit ea66cdd6 authored by Max Kellermann's avatar Max Kellermann

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

parent f762e803
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment