Commit 20372ac
Fix clang warnings (#449)
* Remove TryCatch compiler warning
```
Release/obj.target/appmetrics/geni/appmetrics.cpp:396:18: warning: 'TryCatch' is deprecated [-Wdeprecated-declarations]
TryCatch try_catch;
^
```
* Fix CallAsFunction compiler warning
```
Release/obj.target/appmetrics/geni/appmetrics.cpp:597:93: warning: 'CallAsFunction' is deprecated [-Wdeprecated-declarations]
Local<Value> m = module->Get(Nan::New<String>("require").ToLocalChecked())->ToObject()->CallAsFunction(Nan::GetCurrentContext()->Global(), 1, args);
^
/Users/gib/.cache/node-gyp/6.10.3/include/node/v8.h:2984:30: note: 'CallAsFunction' has been explicitly marked deprecated here
Local<Value> CallAsFunction(Local<Value> recv, int argc,
^
```
* Fix other compiler warnings1 parent 5e72dc8 commit 20372ac
File tree
3 files changed
+8
-10
lines changed- src
- plugins/node
- gc
- loop
3 files changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
396 | 397 | | |
| 398 | + | |
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
| |||
0 commit comments