Commit c628639e authored by Pekka Pessi's avatar Pekka Pessi

msg: silenced warnings if compiled with -DNDEBUG

darcs-hash:20061031172046-65a35-76e4ce6e7ce947f4e93e1eda5639956ae9e357b9.gz
parent 58fc276d
...@@ -150,7 +150,7 @@ char *msg_auth_dup_one(msg_header_t *dst, ...@@ -150,7 +150,7 @@ char *msg_auth_dup_one(msg_header_t *dst,
b = msg_params_dup(&au->au_params, o->au_params, b, xtra); b = msg_params_dup(&au->au_params, o->au_params, b, xtra);
MSG_STRING_DUP(b, au->au_scheme, o->au_scheme); MSG_STRING_DUP(b, au->au_scheme, o->au_scheme);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -173,7 +173,7 @@ char *msg_unknown_dup_one(msg_header_t *dst, msg_header_t const *src, ...@@ -173,7 +173,7 @@ char *msg_unknown_dup_one(msg_header_t *dst, msg_header_t const *src,
MSG_STRING_DUP(b, un->un_name, o->un_name); MSG_STRING_DUP(b, un->un_name, o->un_name);
MSG_STRING_DUP(b, un->un_value, o->un_value); MSG_STRING_DUP(b, un->un_value, o->un_value);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -103,7 +103,7 @@ char *msg_generic_dup_one(msg_header_t *dst, ...@@ -103,7 +103,7 @@ char *msg_generic_dup_one(msg_header_t *dst,
{ {
char *end = b + xtra; char *end = b + xtra;
MSG_STRING_DUP(b, dst->sh_generic->g_string, src->sh_generic->g_string); MSG_STRING_DUP(b, dst->sh_generic->g_string, src->sh_generic->g_string);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -178,7 +178,7 @@ char *msg_list_dup_one(msg_header_t *dst, ...@@ -178,7 +178,7 @@ char *msg_list_dup_one(msg_header_t *dst,
b = msg_params_dup(items, src->sh_list->k_items, b, xtra); b = msg_params_dup(items, src->sh_list->k_items, b, xtra);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -1161,7 +1161,7 @@ char *msg_accept_dup_one(msg_header_t *dst, msg_header_t const *src, ...@@ -1161,7 +1161,7 @@ char *msg_accept_dup_one(msg_header_t *dst, msg_header_t const *src,
ac->ac_subtype++; ac->ac_subtype++;
} }
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -1248,7 +1248,7 @@ char *msg_accept_any_dup_one(msg_header_t *dst, msg_header_t const *src, ...@@ -1248,7 +1248,7 @@ char *msg_accept_any_dup_one(msg_header_t *dst, msg_header_t const *src,
b = msg_params_dup(&aa->aa_params, o->aa_params, b, xtra); b = msg_params_dup(&aa->aa_params, o->aa_params, b, xtra);
MSG_STRING_DUP(b, aa->aa_value, o->aa_value); MSG_STRING_DUP(b, aa->aa_value, o->aa_value);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -1537,7 +1537,7 @@ char *msg_content_disposition_dup_one(msg_header_t *dst, ...@@ -1537,7 +1537,7 @@ char *msg_content_disposition_dup_one(msg_header_t *dst,
b = msg_params_dup(&cd->cd_params, o->cd_params, b, xtra); b = msg_params_dup(&cd->cd_params, o->cd_params, b, xtra);
MSG_STRING_DUP(b, cd->cd_type, o->cd_type); MSG_STRING_DUP(b, cd->cd_type, o->cd_type);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
...@@ -1904,7 +1904,7 @@ char *msg_content_type_dup_one(msg_header_t *dst, msg_header_t const *src, ...@@ -1904,7 +1904,7 @@ char *msg_content_type_dup_one(msg_header_t *dst, msg_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;
} }
...@@ -2164,7 +2164,7 @@ char *msg_warning_dup_one(msg_header_t *dst, ...@@ -2164,7 +2164,7 @@ char *msg_warning_dup_one(msg_header_t *dst,
MSG_STRING_DUP(b, w->w_port, o->w_port); MSG_STRING_DUP(b, w->w_port, o->w_port);
MSG_STRING_DUP(b, w->w_text, o->w_text); MSG_STRING_DUP(b, w->w_text, o->w_text);
assert(b <= end); assert(b <= end); (void)end;
return b; return b;
} }
......
...@@ -535,7 +535,7 @@ char *msg_params_dup(msg_param_t const **d, msg_param_t const s[], ...@@ -535,7 +535,7 @@ char *msg_params_dup(msg_param_t const **d, msg_param_t const s[],
} }
pp[i] = NULL; pp[i] = NULL;
assert(b <= end); assert(b <= end); (void)end;
*d = (msg_param_t const *)pp; *d = (msg_param_t const *)pp;
......
...@@ -188,7 +188,7 @@ char *msg_status_dup_one(msg_header_t *dst, msg_header_t const *src, ...@@ -188,7 +188,7 @@ char *msg_status_dup_one(msg_header_t *dst, msg_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;
} }
......
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