util: fix -Wpessimizing-move warning #148

pull ryanofsky wants to merge 1 commits into bitcoin-core:master from ryanofsky:pr/pess changing 1 files +1 −1
  1. ryanofsky commented at 2:53 am on February 4, 2025: collaborator
    /ci_container_base/src/ipc/libmultiprocess/src/mp/util.cpp:74:12: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move] 74 | return std::move(buffer.str()); | ^ /ci_container_base/src/ipc/libmultiprocess/src/mp/util.cpp:74:12: note: remove std::move call here 74 | return std::move(buffer.str()); | ^~~~~~~~~~ ~
  2. util: fix -Wpessimizing-move warning
    /ci_container_base/src/ipc/libmultiprocess/src/mp/util.cpp:74:12: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
       74 |     return std::move(buffer.str());
          |            ^
    /ci_container_base/src/ipc/libmultiprocess/src/mp/util.cpp:74:12: note: remove std::move call here
       74 |     return std::move(buffer.str());
          |            ^~~~~~~~~~            ~
    3bce9d03d1
  3. ryanofsky merged this on Feb 4, 2025
  4. ryanofsky closed this on Feb 4, 2025

  5. ryanofsky referenced this in commit 37fb62c3a5 on Feb 4, 2025
  6. ryanofsky referenced this in commit 1d75538a32 on Feb 5, 2025
  7. ryanofsky referenced this in commit 9437e6846f on Feb 7, 2025
  8. ryanofsky referenced this in commit a4a8f7a7ba on Feb 7, 2025
  9. ryanofsky referenced this in commit 3a95817ece on Feb 10, 2025
  10. Sjors referenced this in commit 6aabfcb615 on Feb 10, 2025
  11. Sjors referenced this in commit 1746618e08 on Feb 13, 2025
  12. ryanofsky referenced this in commit 83e40d3b52 on Feb 24, 2025
  13. ryanofsky referenced this in commit 8619f03ec2 on Feb 24, 2025
  14. ryanofsky referenced this in commit cbb7b41c20 on Feb 24, 2025
  15. fanquake referenced this in commit 01f7715766 on Feb 25, 2025
  16. fanquake referenced this in commit ba0a4391ff on Feb 25, 2025
  17. janus referenced this in commit 86cb86b050 on Sep 1, 2025


ryanofsky


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-12-04 19:30 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me