Skip to content

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.

2 participants