Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-05-09 09:12:10 +0300
committerAnna Henningsen <anna@addaleax.net>2020-05-09 20:09:30 +0300
commitae34e4737a67f58cfd67f61bc0521b37805a9cfc (patch)
tree1e468d8d4c37cff1b12a3270c2a9935196cdd844 /src/async_wrap.cc
parent38853eb84a0cf764182fa37dfdcca1c792969ce5 (diff)
src: fix compiler warning in async_wrap.cc
../src/async_wrap.cc: In function ‘uint16_t node::ToAsyncHooksType(v8::PromiseHookType)’: ../src/async_wrap.cc:313:1: error: control reaches end of non-void function [-Werror=return-type] } Refs: https://github.com/nodejs/node/pull/32891 PR-URL: https://github.com/nodejs/node/pull/33322 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r--src/async_wrap.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index 75e34c95b44..42e0171a9ca 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -310,6 +310,7 @@ static uint16_t ToAsyncHooksType(PromiseHookType type) {
case PromiseHookType::kAfter: return AsyncHooks::kAfter;
case PromiseHookType::kResolve: return AsyncHooks::kPromiseResolve;
}
+ UNREACHABLE();
}
// Simplified JavaScript hook fast-path for when there is no destroy hook