New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std::move(str) suggested with -Wreturn-std-move #1521

Closed
hendrikwagenaar opened this Issue Apr 24, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@hendrikwagenaar
Copy link

hendrikwagenaar commented Apr 24, 2018

Error:

.../source/util/bit_stream.h:157:10: error: local variable 'str' will be copied despite being returned by name [-Werror,-Wreturn-std-move]
return str;

cdwfs pushed a commit to cdwfs/SPIRV-Tools that referenced this issue Apr 24, 2018

cdwfs pushed a commit to cdwfs/SPIRV-Tools that referenced this issue Apr 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment