Commit d77a05d
authored
Mitigate compiler warnings (#1385)
This PR narrows the Node.js header inclusion in the native bindings to only pull in version macros, which helps mitigate compiler warnings from unnecessary Node C++ API exposure.
**Changes:**
- Replace the broad `<node.h>` include with the more targeted `<node_version.h>` in `rcl_bindings.cpp`.
- Continue to use `NODE_MAJOR_VERSION`, `NODE_RUNTIME_ELECTRON`, and `NODE_MODULE_VERSION` macros via the new header to guard behavior in `CreateArrayBufferFromAddress`.
Fix: #13851 parent e465abd commit d77a05d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments