Task #128 - fixed.err

back to task #128
download
Error: COMPILER_WARNING (CWE-477):
nghttp2-1.59.0/src/shrpx_dns_resolver.cc: scope_hint: In member function ‘int shrpx::DNSResolver::resolve(const nghttp2::StringRef&, int)’
nghttp2-1.59.0/src/shrpx_dns_resolver.cc:176:21: warning[-Wdeprecated-declarations]: ‘void ares_gethostbyname(ares_channel_t*, const char*, int, ares_host_callback, void*)’ is deprecated: Use ares_getaddrinfo instead
#  176 |   ares_gethostbyname(channel_, name_.c_str(), family_, host_cb, this);
#      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nghttp2-1.59.0/src/shrpx_dns_resolver.h:36: included_from: Included from here.
nghttp2-1.59.0/src/shrpx_dns_resolver.cc:25: included_from: Included from here.
/usr/include/ares.h:592:58: note: declared here
#  592 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_getaddrinfo) void ares_gethostbyname(
#      |                                                          ^~~~~~~~~~~~~~~~~~
#  174|     status_ = DNSResolverStatus::RUNNING;
#  175|   
#  176|->   ares_gethostbyname(channel_, name_.c_str(), family_, host_cb, this);
#  177|     reset_timeout();
#  178|