From 403f08e473339858327d244f91e3a0a588b13b69 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Fri, 10 Aug 2018 08:51:03 -0230 Subject: [PATCH] Clang strikes again :) Fix minor warning from clang compiler. --- src/common/SoundSDL2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/SoundSDL2.cxx b/src/common/SoundSDL2.cxx index c9749e843..4f8e18ce2 100644 --- a/src/common/SoundSDL2.cxx +++ b/src/common/SoundSDL2.cxx @@ -66,7 +66,8 @@ SoundSDL2::SoundSDL2(OSystem& osystem, AudioSettings& audioSettings) desired.callback = callback; desired.userdata = static_cast(this); - myDevice = SDL_OpenAudioDevice(0, 0, &desired, &myHardwareSpec, SDL_AUDIO_ALLOW_FREQUENCY_CHANGE); + myDevice = SDL_OpenAudioDevice(nullptr, 0, &desired, &myHardwareSpec, + SDL_AUDIO_ALLOW_FREQUENCY_CHANGE); if(myDevice == 0) {