Commit 22a89ff7 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix compile error and warning with gcc

parent f0d2c9f9
......@@ -303,7 +303,7 @@ int Client::connect() {
return -1;
}
} else {
addrinfo *addr;
addrinfo *addr = nullptr;
while (next_addr) {
addr = next_addr;
next_addr = next_addr->ai_next;
......@@ -317,6 +317,8 @@ int Client::connect() {
return -1;
}
assert(addr);
current_addr = addr;
}
......
......@@ -27,6 +27,7 @@
#include "nghttp2_config.h"
#include <cstring>
#include <memory>
#include <array>
#include <functional>
......
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