test/read_mixer: another kludge to work around -Wnull-dereference
This commit is contained in:
parent
f762e8034f
commit
ea66cdd6a5
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue