diff --git a/test/test.cc b/test/test.cc index 556bf2497d..007842a63d 100644 --- a/test/test.cc +++ b/test/test.cc @@ -2126,7 +2126,7 @@ TEST(ExceptionTest, AndErrorHandler) { res.status = StatusCode::InternalServerError_500; }); - svr.Get("/exception", [](const Request & /*req*/, Response &res) { + svr.Get("/exception", [](const Request & /*req*/, Response & /*res*/) { throw std::runtime_error("EXCEPTION"); });