test/read_mixer: another kludge to work around -Wnull-dereference
This commit is contained in:
		| @@ -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()); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann