Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning #15

Open
daurnimator opened this issue May 22, 2017 · 0 comments
Open

Deprecation warning #15

daurnimator opened this issue May 22, 2017 · 0 comments

Comments

@daurnimator
Copy link

daurnimator commented May 22, 2017

> node-gyp rebuild

make: Entering directory '/home/daurnimator/someproject/node_modules/socketwatcher/build'
  CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
../socket_watcher.cpp: In static member function ‘static void SocketWatcher::New(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../socket_watcher.cpp:104:49: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     info.GetReturnValue().Set(cons->NewInstance());
                                                 ^
In file included from /home/daurnimator/.node-gyp/7.10.0/include/node/v8.h:26:0,
                 from /home/daurnimator/.node-gyp/7.10.0/include/node/node.h:42,
                 from ../../nan/nan.h:49,
                 from ../socket_watcher.hpp:8,
                 from ../socket_watcher.cpp:5:
/home/daurnimator/.node-gyp/7.10.0/include/node/v8.h:3662:52: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
                                                    ^
/home/daurnimator/.node-gyp/7.10.0/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
  COPY Release/socketwatcher.node
make: Leaving directory '/home/daurnimator/someproject/node_modules/socketwatcher/build'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant