Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

The "cast between incompatible function types" warning message for pkcs11js module during container image building process. #3

Open
wan-yong opened this issue Aug 3, 2022 · 0 comments

Comments

@wan-yong
Copy link
Contributor

wan-yong commented Aug 3, 2022

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)
      | ^~~~~~~~~~~
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant