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)
}
} else {
memset(mp3buf, 0, 128);
- shout_send(context->shout, mp3buf, 128);
+ ret = shout_send(context->shout, mp3buf, 128);
+ if (ret != SHOUTERR_SUCCESS) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Send error: %s\n", shout_get_error(context->shout));
+ goto error;
+ }
}
shout_sync(context->shout);