You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this error while attempting to enable testing of import-fresh under node.js 12. Tested with Fedora 28 though I suspect this is not platform specific. Please let me know if you need any further details.
CXX(target) Release/obj.target/addon/src/heapdump.o
In file included from ../src/heapdump.cc:17:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
, reinterpret_cast(AsyncExecuteComplete)
^
../src/heapdump.cc: In function ‘void {anonymous}::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/heapdump.cc:128:67: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
Nan::New(Configure)->GetFunction());
^
In file included from /home/cfarrell/.node-gyp/12.0.0/include/node/node.h:63,
from ../src/heapdump.cc:15:
/home/cfarrell/.node-gyp/12.0.0/include/node/v8.h:5947:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^~~~~~~~~~~
/home/cfarrell/.node-gyp/12.0.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided
../src/heapdump.cc:131:71: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
Nan::New(WriteSnapshot)->GetFunction());
^
In file included from /home/cfarrell/.node-gyp/12.0.0/include/node/node.h:63,
from ../src/heapdump.cc:15:
/home/cfarrell/.node-gyp/12.0.0/include/node/v8.h:5947:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^~~~~~~~~~~
/home/cfarrell/.node-gyp/12.0.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided
In file included from ../src/heapdump.cc:15:
../src/heapdump.cc: At global scope:
/home/cfarrell/.node-gyp/12.0.0/include/node/node.h:556:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/cfarrell/.node-gyp/12.0.0/include/node/node.h:590:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/heapdump.cc:134:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(addon, Initialize)
^~~~~~~~~~~
In file included from /home/cfarrell/.node-gyp/12.0.0/include/node/node.h:63,
from ../src/heapdump.cc:15:
/home/cfarrell/.node-gyp/12.0.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void (*)(const v8::WeakCallbackInfo&)]’:
/home/cfarrell/.node-gyp/12.0.0/include/node/node_object_wrap.h:84:78: required from here
/home/cfarrell/.node-gyp/12.0.0/include/node/v8.h:9817:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
reinterpret_cast(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/cfarrell/.node-gyp/12.0.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void (*)(const v8::WeakCallbackInfo&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/cfarrell/.node-gyp/12.0.0/include/node/v8.h:9817:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
The text was updated successfully, but these errors were encountered:
I found this error while attempting to enable testing of import-fresh under node.js 12. Tested with Fedora 28 though I suspect this is not platform specific. Please let me know if you need any further details.
The text was updated successfully, but these errors were encountered: