mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-23 07:50:02 +00:00
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 *bkt;
|
||||
int rv;
|
||||
(void)rv;
|
||||
|
||||
new_table =
|
||||
nghttp2_mem_calloc(map->mem, new_tablelen, sizeof(nghttp2_map_bucket));
|
||||
|
@ -451,6 +451,7 @@ void Client::quic_close_connection() {
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
abort();
|
||||
}
|
||||
|
||||
if (nwrite < 0) {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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_);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user