Commit 3048581
authored
fix: address
Fixes:
../src/node_main.cc:945:52: warning: moving a temporary object prevents copy elision
std::vector<char>* str = new std::vector<char>(std::move(GetBoxednodeCodeCacheVector()));
^
../src/node_main.cc:945:52: note: remove std::move call here
std::vector<char>* str = new std::vector<char>(std::move(GetBoxednodeCodeCacheVector()));
^~~~~~~~~~ ~
../src/node_main.cc:986:52: warning: moving a temporary object prevents copy elision
std::vector<char>* str = new std::vector<char>(std::move(GetBoxednodeSnapshotBlobVector()));
^
../src/node_main.cc:986:52: note: remove std::move call here
std::vector<char>* str = new std::vector<char>(std::move(GetBoxednodeSnapshotBlobVector()));-Wpessimizing-move warning in binary blob helpers (#62)1 parent ea49575 commit 3048581
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
0 commit comments