diff --git a/include/continuable/detail/base.hpp b/include/continuable/detail/base.hpp index f720717..173bd90 100644 --- a/include/continuable/detail/base.hpp +++ b/include/continuable/detail/base.hpp @@ -333,7 +333,8 @@ struct error_callback, Callback, Executor, } /// The operator which is called when an error occurred - void operator()(types::dispatch_error_tag /*tag*/, types::error_type error) { + void operator()(types::dispatch_error_tag /*tag*/, + types::error_type /*error*/) { /* *TODO *auto invoker = [] {}; @@ -345,12 +346,12 @@ struct error_callback, Callback, Executor, } /// Resolves the continuation with the given values - void set_value(Args... args) { + void set_value(Args... /*args*/) { // std::move(next_callback_)(std::move(args)...); } /// Resolves the continuation with the given error variable. - void set_exception(types::error_type error) { + void set_exception(types::error_type /*error*/) { // std::move(next_callback_)(types::dispatch_error_tag{}, std::move(error)); } }; diff --git a/test/playground/test-playground.cpp b/test/playground/test-playground.cpp index 41cd795..89c4dcf 100644 --- a/test/playground/test-playground.cpp +++ b/test/playground/test-playground.cpp @@ -46,17 +46,17 @@ int main(int, char**) { .then([](std::string /*response*/) { // ... }) - /*.catching([](std::exception_ptr) { + .catching([](std::exception_ptr) { // ... - })*/; + }); http_request2("github.com") .then([](std::string /*response*/) { // ... }) - /*.catching([](std::exception_ptr) { + .catching([](std::exception_ptr) { // ... - })*/; + }); return 0; }