From ae34e4737a67f58cfd67f61bc0521b37805a9cfc Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 9 May 2020 08:12:10 +0200 Subject: src: fix compiler warning in async_wrap.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../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 Reviewed-By: Michaël Zasso --- src/async_wrap.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/async_wrap.cc') 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 -- cgit v1.2.3