summaryrefslogtreecommitdiff
path: root/test/read_mixer.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-23 16:42:25 +0100
committerMax Kellermann <max@musicpd.org>2018-01-23 16:42:25 +0100
commitea66cdd6a5cdcce0cf663e3c3a6e7e81ceacbbe5 (patch)
treea271e1ec9518830167b162b8e12174a74e19e35c /test/read_mixer.cxx
parentf762e8034f838b6087f6ea2e2010d3a23415f53c (diff)
test/read_mixer: another kludge to work around -Wnull-dereference
Diffstat (limited to 'test/read_mixer.cxx')
-rw-r--r--test/read_mixer.cxx6
1 files changed, 5 insertions, 1 deletions
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());