From cbe11b01974bb360588724389db40f5cf866ba5f Mon Sep 17 00:00:00 2001 From: Seven Du Date: Tue, 27 Feb 2024 09:22:19 +0800 Subject: [PATCH] [mod_shout] fix build with new clang on macOS fix error: ignoring return value of function declared with warn_unused_result attribute [-Werror,-Wunused-result] Apple clang version 15.0.0 (clang-1500.1.0.2.5) --- src/mod/formats/mod_shout/mod_shout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index be05ba5c32..3bd402ee7b 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -619,7 +619,7 @@ static void *SWITCH_THREAD_FUNC write_stream_thread(switch_thread_t *thread, voi } } else { memset(mp3buf, 0, 128); - shout_send(context->shout, mp3buf, 128); + ret = shout_send(context->shout, mp3buf, 128); } shout_sync(context->shout);