Skip to content

Using std::move is redundant#3273

Merged
andypugh merged 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_redundant-move
Jan 15, 2025
Merged

Using std::move is redundant#3273
andypugh merged 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_redundant-move

Conversation

@BsAtHome
Copy link
Contributor

Using std:move on a (convertible) return value is redundant. The warning was exposed using g++ with -Wredundant-move and fixed in this PR.

(Note: this issue was addressed in C++ Core Issue 1579 ten years ago for C++14 and we are requiring C++17 or later. Both gcc and clang implement the resolution.)

@andypugh andypugh merged commit db76678 into LinuxCNC:master Jan 15, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants