Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: address
-Wpessimizing-move
warning in binary blob helpers
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()));
- Loading branch information