Compile with -DNDEBUG
This commit is contained in:
parent
f4290c6497
commit
cb6aea9aa9
|
@ -189,6 +189,7 @@ static int map_resize(nghttp2_map *map, uint32_t new_tablelen,
|
||||||
nghttp2_map_bucket *new_table;
|
nghttp2_map_bucket *new_table;
|
||||||
nghttp2_map_bucket *bkt;
|
nghttp2_map_bucket *bkt;
|
||||||
int rv;
|
int rv;
|
||||||
|
(void)rv;
|
||||||
|
|
||||||
new_table =
|
new_table =
|
||||||
nghttp2_mem_calloc(map->mem, new_tablelen, sizeof(nghttp2_map_bucket));
|
nghttp2_mem_calloc(map->mem, new_tablelen, sizeof(nghttp2_map_bucket));
|
||||||
|
|
|
@ -451,6 +451,7 @@ void Client::quic_close_connection() {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nwrite < 0) {
|
if (nwrite < 0) {
|
||||||
|
|
|
@ -1842,6 +1842,7 @@ int Http3Upstream::http_acked_stream_data(Downstream *downstream,
|
||||||
|
|
||||||
auto body = downstream->get_response_buf();
|
auto body = downstream->get_response_buf();
|
||||||
auto drained = body->drain_mark(datalen);
|
auto drained = body->drain_mark(datalen);
|
||||||
|
(void)drained;
|
||||||
|
|
||||||
assert(datalen == drained);
|
assert(datalen == drained);
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@ int MRubyContext::run_app(Downstream *downstream, int phase) {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto res = mrb_funcall(mrb_, app_, method, 1, env_);
|
auto res = mrb_funcall(mrb_, app_, method, 1, env_);
|
||||||
|
|
|
@ -1036,6 +1036,7 @@ const UpstreamAddr *Worker::find_quic_upstream_addr(const Address &local_addr) {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::array<char, util::max_hostport> hostport_buf;
|
std::array<char, util::max_hostport> hostport_buf;
|
||||||
|
|
Loading…
Reference in New Issue