The "cast between incompatible function types" warning message for pkcs11js module during container image building process.
Opened this issue · 0 comments
wan-yong commented
If you see the following warning message during container image building process, that is ok. It is cast between incompatible function types
warning message for pkcs11js module.
> node-gyp rebuild
make: Entering directory '/root/nft-community-footprint/application/node_modules/pkcs11js/build'
CXX(target) Release/obj.target/pkcs11/src/main.o
In file included from ../../nan/nan.h:60,
from ../src/main.cpp:1:
/root/.cache/node-gyp/14.20.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
793 | (node::addon_register_func) (regfunc), \
| ^
/root/.cache/node-gyp/14.20.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
827 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/main.cpp:27:1: note: in expansion of macro ‘NODE_MODULE’
27 | NODE_MODULE(pkcs11, init)
| ^~~~~~~~~~~