Fix compilation warnings with Node 12.
nolanmar511 opened this issue · 1 comments
nolanmar511 commented
Current output when installing pprof module with node 12:
npm install pprof
> pprof@1.0.0 install /usr/local/google/home/nolanmar/tmp-inst/node_modules/pprof
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v1.0.0/node-v72-linux-x64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for pprof@1.0.0 and node@12.3.1 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/usr/local/google/home/nolanmar/tmp-inst/node_modules/pprof/build'
CXX(target) Release/obj.target/pprof/bindings/profiler.o
../bindings/profiler.cc: In function ‘v8::Local<v8::Value> TranslateAllocationProfile(v8::AllocationProfile::Node*)’:
../bindings/profiler.cc:28:15: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
node->name);
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:30:22: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
node->script_name);
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:32:39: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Integer>(node->script_id));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:34:41: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Integer>(node->line_number));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:36:43: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Integer>(node->column_number));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:39:67: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
children->Set(i, TranslateAllocationProfile(node->children[i]));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3368:26: note: declared here
bool Set(uint32_t index, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:42:13: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
children);
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:48:35: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Number>(alloc.size));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:50:36: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Number>(alloc.count));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:51:33: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
allocations->Set(i, js_alloc);
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3368:26: note: declared here
bool Set(uint32_t index, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:54:16: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
allocations);
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc: In function ‘v8::Local<v8::Value> TranslateTimeProfileNode(const v8::CpuProfileNode*)’:
../bindings/profiler.cc:108:28: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
node->GetFunctionName());
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:110:34: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
node->GetScriptResourceName());
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:112:43: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Integer>(node->GetScriptId()));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:114:45: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Integer>(node->GetLineNumber()));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:116:47: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Integer>(node->GetColumnNumber()));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:118:43: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Integer>(node->GetHitCount()));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:122:65: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
children->Set(i, TranslateTimeProfileNode(node->GetChild(i)));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3368:26: note: declared here
bool Set(uint32_t index, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:125:13: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
children);
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc: In function ‘v8::Local<v8::Value> TranslateTimeProfile(const v8::CpuProfile*)’:
../bindings/profiler.cc:132:24: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
profile->GetTitle());
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:134:56: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
TranslateTimeProfileNode(profile->GetTopDownRoot()));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:136:46: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Number>(profile->GetStartTime()));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:138:44: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::New<Number>(profile->GetEndTime()));
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc: In function ‘void InitAll(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../bindings/profiler.cc:177:78: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
target->Set(Nan::New<String>("timeProfiler").ToLocalChecked(), timeProfiler);
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../bindings/profiler.cc:186:78: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
target->Set(Nan::New<String>("heapProfiler").ToLocalChecked(), heapProfiler);
^
In file included from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-internal.h:14:0,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:25,
from /usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8-profiler.h:10,
from ../bindings/profiler.cc:17:
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/usr/local/google/home/nolanmar/.node-gyp/12.3.1/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
SOLINK_MODULE(target) Release/obj.target/pprof.node
COPY Release/pprof.node
COPY /usr/local/google/home/nolanmar/tmp-inst/node_modules/pprof/build/node-v72-linux-x64-glibc/pprof.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/usr/local/google/home/nolanmar/tmp-inst/node_modules/pprof/build'
nolanmar511 commented
Fixed by #74