From a7c6201d15e83f35c2d2b94204deba5c29acd777 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 20 Jun 2018 15:26:37 +0300 Subject: [PATCH] libtgvoip: return nullptr to avoid compile error Before that commit the function void *AudioInputALSA::StartThread() doesn't return any values. Also please note that this fix should be ported after syncing libtgvoip to upstream! Related to #153. --- Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp b/Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp index 027ba155d..aa0e06aca 100644 --- a/Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp +++ b/Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp @@ -71,6 +71,7 @@ void AudioInputALSA::Stop(){ void* AudioInputALSA::StartThread(void* arg){ ((AudioInputALSA*)arg)->RunThread(); + return nullptr; } void AudioInputALSA::RunThread(){ @@ -176,4 +177,4 @@ void AudioInputALSA::EnumerateDevices(std::vector& devs){ } dlclose(lib); -} \ No newline at end of file +}