Commit b1baa287 authored by Simon Morlat's avatar Simon Morlat

fix compilation warnings

parent 8e0f6fb2
......@@ -290,7 +290,7 @@ static int stateful_qos_analyzer_get_total_emitted(const MSStatefulQosAnalyzer *
static double stateful_qos_analyzer_upload_bandwidth(MSStatefulQosAnalyzer *obj){
double up_bw=rtp_session_get_send_bandwidth(obj->session)/1000.0;
(void)up_bw;
if (obj->upload_bandwidth_count){
obj->upload_bandwidth_latest=obj->upload_bandwidth_sum/obj->upload_bandwidth_count;
}
......@@ -360,6 +360,7 @@ static bool_t stateful_analyzer_process_rtcp(MSQosAnalyzer *objbase, mblk_t *rtc
if (ms_list_size(obj->rtcpstatspoint) > ESTIM_HISTORY){
int prev_size = ms_list_size(obj->rtcpstatspoint);
(void)prev_size;
/*clean everything which occurred 60 sec or more ago*/
time_t clear_time = ms_time(0) - 60;
obj->rtcpstatspoint = ms_list_remove_custom(obj->rtcpstatspoint, (MSCompareFunc)earlier_than, &clear_time);
......@@ -447,6 +448,7 @@ static float compute_available_bw(MSStatefulQosAnalyzer *obj){
ms_debug("MSQosStatefulAnalyzer[%p]:\tconstant_network_loss=%f", obj, constant_network_loss);
for (it = obj->rtcpstatspoint; it != NULL; it=it->next){
rtcpstatspoint_t * point = (rtcpstatspoint_t *)it->data;
(void)point;
ms_debug("MSQosStatefulAnalyzer[%p]:\t\tsorted values %d: %f %f",
obj, ms_list_position(obj->rtcpstatspoint, it), point->bandwidth, point->loss_percent);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment