Commit 58fc276d authored by Pekka Pessi's avatar Pekka Pessi

sip: removed warnign when compiling with -DNDEBUG

darcs-hash:20061031172013-65a35-32fc761332f88dad91b42d18e2aab66e2fc65c75.gz
parent a5f4596d
...@@ -351,7 +351,7 @@ char *sip_status_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -351,7 +351,7 @@ char *sip_status_dup_one(sip_header_t *dst, sip_header_t const *src,
st->st_status = o->st_status; st->st_status = o->st_status;
MSG_STRING_DUP(b, st->st_phrase, o->st_phrase); MSG_STRING_DUP(b, st->st_phrase, o->st_phrase);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -1042,7 +1042,7 @@ char *sip_call_id_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -1042,7 +1042,7 @@ char *sip_call_id_dup_one(sip_header_t *dst, sip_header_t const *src,
MSG_STRING_DUP(b, i->i_id, o->i_id); MSG_STRING_DUP(b, i->i_id, o->i_id);
if (!(i->i_hash = o->i_hash)) if (!(i->i_hash = o->i_hash))
i->i_hash = msg_hash_string(i->i_id); i->i_hash = msg_hash_string(i->i_id);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -1192,7 +1192,7 @@ char *sip_cseq_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -1192,7 +1192,7 @@ char *sip_cseq_dup_one(sip_header_t *dst, sip_header_t const *src,
cs->cs_method_name = o->cs_method_name; cs->cs_method_name = o->cs_method_name;
cs->cs_seq = o->cs_seq; cs->cs_seq = o->cs_seq;
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -2013,7 +2013,7 @@ char *sip_retry_after_dup_one(sip_header_t *dst, ...@@ -2013,7 +2013,7 @@ char *sip_retry_after_dup_one(sip_header_t *dst,
MSG_STRING_DUP(b, af->af_comment, o->af_comment); MSG_STRING_DUP(b, af->af_comment, o->af_comment);
af->af_delta = o->af_delta; af->af_delta = o->af_delta;
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -2565,7 +2565,7 @@ char *sip_via_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -2565,7 +2565,7 @@ char *sip_via_dup_one(sip_header_t *dst, sip_header_t const *src,
MSG_STRING_DUP(b, v->v_port, o->v_port); MSG_STRING_DUP(b, v->v_port, o->v_port);
MSG_STRING_DUP(b, v->v_comment, o->v_comment); MSG_STRING_DUP(b, v->v_comment, o->v_comment);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -143,7 +143,7 @@ char *sip_request_disposition_dup_one(sip_header_t *dst, ...@@ -143,7 +143,7 @@ char *sip_request_disposition_dup_one(sip_header_t *dst,
b = msg_params_dup(dst_items, o_src->rd_items, b, xtra); b = msg_params_dup(dst_items, o_src->rd_items, b, xtra);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -263,7 +263,7 @@ char *sip_caller_prefs_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -263,7 +263,7 @@ char *sip_caller_prefs_dup_one(sip_header_t *dst, sip_header_t const *src,
b = msg_params_dup(&cp->cp_params, o->cp_params, b, xtra); b = msg_params_dup(&cp->cp_params, o->cp_params, b, xtra);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -141,7 +141,7 @@ char *sip_event_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -141,7 +141,7 @@ char *sip_event_dup_one(sip_header_t *dst, sip_header_t const *src,
char *end = b + xtra; char *end = b + xtra;
b = msg_params_dup(&o_dst->o_params, o_src->o_params, b, xtra); b = msg_params_dup(&o_dst->o_params, o_src->o_params, b, xtra);
MSG_STRING_DUP(b, o_dst->o_type, o_src->o_type); MSG_STRING_DUP(b, o_dst->o_type, o_src->o_type);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -353,7 +353,7 @@ char *sip_subscription_state_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -353,7 +353,7 @@ char *sip_subscription_state_dup_one(sip_header_t *dst, sip_header_t const *src,
b = msg_params_dup(&ss_dst->ss_params, ss_src->ss_params, b, xtra); b = msg_params_dup(&ss_dst->ss_params, ss_src->ss_params, b, xtra);
MSG_STRING_DUP(b, ss_dst->ss_substate, ss_src->ss_substate); MSG_STRING_DUP(b, ss_dst->ss_substate, ss_src->ss_substate);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -559,7 +559,7 @@ char *sip_timestamp_dup_one(sip_header_t *dst, ...@@ -559,7 +559,7 @@ char *sip_timestamp_dup_one(sip_header_t *dst,
MSG_STRING_DUP(b, ts->ts_stamp, o->ts_stamp); MSG_STRING_DUP(b, ts->ts_stamp, o->ts_stamp);
MSG_STRING_DUP(b, ts->ts_delay, o->ts_delay); MSG_STRING_DUP(b, ts->ts_delay, o->ts_delay);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -608,7 +608,7 @@ char *sip_content_type_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -608,7 +608,7 @@ char *sip_content_type_dup_one(sip_header_t *dst, sip_header_t const *src,
c->c_subtype = strchr(c->c_type, '/'); c->c_subtype = strchr(c->c_type, '/');
c->c_subtype++; c->c_subtype++;
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -152,7 +152,7 @@ char *sip_rack_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -152,7 +152,7 @@ char *sip_rack_dup_one(sip_header_t *dst, sip_header_t const *src,
else else
ra_dst->ra_method_name = ra_src->ra_method_name; ra_dst->ra_method_name = ra_src->ra_method_name;
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -141,7 +141,7 @@ char *sip_reason_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -141,7 +141,7 @@ char *sip_reason_dup_one(sip_header_t *dst, sip_header_t const *src,
char *end = b + xtra; char *end = b + xtra;
b = msg_params_dup(&re_dst->re_params, re_src->re_params, b, xtra); b = msg_params_dup(&re_dst->re_params, re_src->re_params, b, xtra);
MSG_STRING_DUP(b, re_dst->re_protocol, re_src->re_protocol); MSG_STRING_DUP(b, re_dst->re_protocol, re_src->re_protocol);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -404,7 +404,7 @@ char *sip_replaces_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -404,7 +404,7 @@ char *sip_replaces_dup_one(sip_header_t *dst, sip_header_t const *src,
b = msg_params_dup(&rp_dst->rp_params, rp_src->rp_params, b, xtra); b = msg_params_dup(&rp_dst->rp_params, rp_src->rp_params, b, xtra);
MSG_STRING_DUP(b, rp_dst->rp_call_id, rp_src->rp_call_id); MSG_STRING_DUP(b, rp_dst->rp_call_id, rp_src->rp_call_id);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -506,7 +506,7 @@ char *sip_security_agree_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -506,7 +506,7 @@ char *sip_security_agree_dup_one(sip_header_t *dst, sip_header_t const *src,
char *end = b + xtra; char *end = b + xtra;
b = msg_params_dup(&sa_dst->sa_params, sa_src->sa_params, b, xtra); b = msg_params_dup(&sa_dst->sa_params, sa_src->sa_params, b, xtra);
MSG_STRING_DUP(b, sa_dst->sa_mec, sa_src->sa_mec); MSG_STRING_DUP(b, sa_dst->sa_mec, sa_src->sa_mec);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -833,7 +833,7 @@ char *sip_privacy_dup_one(sip_header_t *dst, ...@@ -833,7 +833,7 @@ char *sip_privacy_dup_one(sip_header_t *dst,
b = msg_params_dup(&priv->priv_values, o->priv_values, b, xtra); b = msg_params_dup(&priv->priv_values, o->priv_values, b, xtra);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -138,7 +138,7 @@ char *sip_session_expires_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -138,7 +138,7 @@ char *sip_session_expires_dup_one(sip_header_t *dst, sip_header_t const *src,
char *end = b + xtra; char *end = b + xtra;
b = msg_params_dup(&o_dst->x_params, o_src->x_params, b, xtra); b = msg_params_dup(&o_dst->x_params, o_src->x_params, b, xtra);
o_dst->x_delta = o_src->x_delta; o_dst->x_delta = o_src->x_delta;
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -246,7 +246,7 @@ char *sip_min_se_dup_one(sip_header_t *dst, sip_header_t const *src, ...@@ -246,7 +246,7 @@ char *sip_min_se_dup_one(sip_header_t *dst, sip_header_t const *src,
char *end = b + xtra; char *end = b + xtra;
b = msg_params_dup(&o_dst->min_params, o_src->min_params, b, xtra); b = msg_params_dup(&o_dst->min_params, o_src->min_params, b, xtra);
o_dst->min_delta = o_src->min_delta; o_dst->min_delta = o_src->min_delta;
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
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