Skip to content
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

Fix lambda warning on building #6195

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

taniabogatsch
Copy link
Contributor

Fixes this warning.

tania@laptop duckdb % make debug
mkdir -p build/debug && \
	cd build/debug && \
	cmake       -DDISABLE_VPTR_SANITIZER=1  -DBUILD_PARQUET_EXTENSION=TRUE -DDEBUG_MOVE=1 -DCMAKE_BUILD_TYPE=Debug ../.. && \
	cmake --build . --config Debug
-- git hash c0907528a3, version v0.6.1-dev2608
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/tania/DuckDB/duckdb/build/debug
[2/10] Building CXX object src/function/scalar/list/CMakeFiles/duckdb_func_list.dir/ub_duckdb_func_list.cpp.o
In file included from /Users/tania/DuckDB/duckdb/build/debug/src/function/scalar/list/ub_duckdb_func_list.cpp:2:
/Users/tania/DuckDB/duckdb/src/function/scalar/list/list_lambdas.cpp:371:35: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
                bound_lambda_expr.lambda_expr = std::move(BoundCastExpression::AddCastToType(
                                                ^
/Users/tania/DuckDB/duckdb/src/function/scalar/list/list_lambdas.cpp:371:35: note: remove std::move call here
                bound_lambda_expr.lambda_expr = std::move(BoundCastExpression::AddCastToType(
                                                ^~~~~~~~~~
1 warning generated.

@taniabogatsch taniabogatsch self-assigned this Feb 10, 2023
@Mytherin Mytherin merged commit 6bfbe23 into duckdb:master Feb 10, 2023
@taniabogatsch taniabogatsch deleted the fix-lambda-warning branch February 13, 2023 08:21
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.

None yet

2 participants