mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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>
This commit is contained in:
1 parent
1dcf66cf87
commit
fd9c7c2118
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user