Fixed warnings

This commit is contained in:
yhirose 2020-05-08 21:29:33 -04:00
parent 5e01587ed6
commit eb1fe5b191

View file

@ -566,8 +566,8 @@ TEST(DigestAuthTest, FromHTTPWatch) {
EXPECT_EQ(400, res->status);
}
// NOTE: Until httpbin.org fixes issue #46, the following test is commented out.
// Plese see https://httpbin.org/digest-auth/auth/hello/world
// NOTE: Until httpbin.org fixes issue #46, the following test is commented
// out. Plese see https://httpbin.org/digest-auth/auth/hello/world
// cli.set_digest_auth("bad", "world");
// for (auto path : paths) {
// auto res = cli.Get(path.c_str());
@ -2091,8 +2091,7 @@ TEST_F(ServerTest, KeepAlive) {
Get(requests, "/not-exist");
Post(requests, "/empty", "", "text/plain");
Post(
requests, "/empty", 0,
[&](size_t offset, size_t length, httplib::DataSink &sink) {},
requests, "/empty", 0, [&](size_t, size_t, httplib::DataSink &) {},
"text/plain");
std::vector<Response> responses;