diff --git a/src/inspector_socket.cc b/src/inspector_socket.cc index dcc42f25b4acb8..b17ee767439d46 100644 --- a/src/inspector_socket.cc +++ b/src/inspector_socket.cc @@ -365,7 +365,7 @@ class WsHandler : public ProtocolHandler { } private: - using Callback = void (WsHandler::*)(void); + using Callback = void (WsHandler::*)(); static void OnCloseFrameWritten(uv_write_t* req, int status) { WriteRequest* wr = WriteRequest::from_write_req(req); diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index b8ed2f99135a65..96b9115adac860 100644 --- a/src/node_object_wrap.h +++ b/src/node_object_wrap.h @@ -81,7 +81,7 @@ class ObjectWrap { } - inline void MakeWeak(void) { + inline void MakeWeak() { persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter); }