From ea66cdd6a5cdcce0cf663e3c3a6e7e81ceacbbe5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 23 Jan 2018 16:42:25 +0100 Subject: [PATCH] test/read_mixer: another kludge to work around -Wnull-dereference --- test/read_mixer.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/read_mixer.cxx b/test/read_mixer.cxx index 9919b9c4c..a0d7487b2 100644 --- a/test/read_mixer.cxx +++ b/test/read_mixer.cxx @@ -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());