-
Notifications
You must be signed in to change notification settings - Fork 273
Build fails with Clang 7.0 due to local variable copies #3238
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
Comments
karkhaz
added a commit
to karkhaz/cbmc
that referenced
this issue
Oct 28, 2018
This commit fixes diffblue#3238, a warning emitted by clang 7.0: ``` java_bytecode_convert_method.cpp:2924:10: error: local variable 'block' will be copied despite being returned by name [-Werror,-Wreturn-std-move] return block; ^~~~~ java_bytecode_convert_method.cpp:2924:10: note: call 'std::move' explicitly to avoid copying return block; ^~~~~ std::move(block) ``` The fix is to wrap all such returned local variables in a call to std::move().
6 tasks
xbauch
pushed a commit
to xbauch/cbmc
that referenced
this issue
Nov 9, 2018
This commit fixes diffblue#3238, a warning emitted by clang 7.0: ``` java_bytecode_convert_method.cpp:2924:10: error: local variable 'block' will be copied despite being returned by name [-Werror,-Wreturn-std-move] return block; ^~~~~ java_bytecode_convert_method.cpp:2924:10: note: call 'std::move' explicitly to avoid copying return block; ^~~~~ std::move(block) ``` The fix is to wrap all such returned local variables in a call to std::move().
karkhaz
added a commit
to karkhaz/cbmc
that referenced
this issue
Nov 9, 2018
This fixes diffblue#3238 (again).
karkhaz
added a commit
to karkhaz/cbmc
that referenced
this issue
Nov 9, 2018
This fixes diffblue#3238 (again).
karkhaz
added a commit
to karkhaz/cbmc
that referenced
this issue
Nov 9, 2018
This fixes diffblue#3238 (again).
karkhaz
added a commit
to karkhaz/cbmc
that referenced
this issue
Nov 9, 2018
This fixes diffblue#3238 (again).
karkhaz
added a commit
to karkhaz/cbmc
that referenced
this issue
Nov 9, 2018
This fixes diffblue#3238 (again).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When building with Clang 7.0, I'm getting thousands of errors like this.
I'll fix these soon. Here's the environment:
The text was updated successfully, but these errors were encountered: