Compile with -DNDEBUG

This commit is contained in:
Tatsuhiro Tsujikawa 2021-10-06 21:28:00 +09:00
parent f4290c6497
commit cb6aea9aa9
5 changed files with 5 additions and 0 deletions

View File

@ -189,6 +189,7 @@ static int map_resize(nghttp2_map *map, uint32_t new_tablelen,
nghttp2_map_bucket *new_table;
nghttp2_map_bucket *bkt;
int rv;
(void)rv;
new_table =
nghttp2_mem_calloc(map->mem, new_tablelen, sizeof(nghttp2_map_bucket));

View File

@ -451,6 +451,7 @@ void Client::quic_close_connection() {
break;
default:
assert(0);
abort();
}
if (nwrite < 0) {

View File

@ -1842,6 +1842,7 @@ int Http3Upstream::http_acked_stream_data(Downstream *downstream,
auto body = downstream->get_response_buf();
auto drained = body->drain_mark(datalen);
(void)drained;
assert(datalen == drained);

View File

@ -75,6 +75,7 @@ int MRubyContext::run_app(Downstream *downstream, int phase) {
break;
default:
assert(0);
abort();
}
auto res = mrb_funcall(mrb_, app_, method, 1, env_);

View File

@ -1036,6 +1036,7 @@ const UpstreamAddr *Worker::find_quic_upstream_addr(const Address &local_addr) {
break;
default:
assert(0);
abort();
}
std::array<char, util::max_hostport> hostport_buf;