mirror of
https://github.com/Naios/continuable.git
synced 2026-02-08 02:36:40 +08:00
Silence a warning when using CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS
* Ref e59e6ae8b9
This commit is contained in:
parent
e59e6ae8b9
commit
9247e7b85f
@ -461,6 +461,7 @@ struct final_callback : util::non_copyable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void operator()(types::dispatch_error_tag, types::error_type error) && {
|
void operator()(types::dispatch_error_tag, types::error_type error) && {
|
||||||
|
(void)error;
|
||||||
#ifndef CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS
|
#ifndef CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS
|
||||||
// There were unhandled errors inside the asynchronous call chain!
|
// There were unhandled errors inside the asynchronous call chain!
|
||||||
// Define `CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS` in order
|
// Define `CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS` in order
|
||||||
@ -475,7 +476,6 @@ struct final_callback : util::non_copyable {
|
|||||||
util::trap();
|
util::trap();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
(void)error;
|
|
||||||
util::trap();
|
util::trap();
|
||||||
#endif
|
#endif
|
||||||
#endif // CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS
|
#endif // CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user