>>> mongodb 4.2.18 Extracting gzip -d -c /home/giuliobenetti/autobuild/run/instance-0/dl/mongodb/mongodb-src-r4.2.18.tar.gz | tar --strip-components=1 -C /home/giuliobenetti/autobuild/run/instance-0/output-1/build/mongodb-4.2.18 -xf - >>> mongodb 4.2.18 Patching Applying 0001-ssl_manager.cpp-fix-build-with-gcc-7-and-fpermissive.patch using patch: patching file src/mongo/util/net/ssl_manager.cpp Hunk #1 succeeded at 776 (offset -6 lines). Hunk #2 succeeded at 793 (offset -6 lines). Hunk #3 succeeded at 838 (offset -6 lines). Applying 0002-src-mongo-db-exec-plan_stats.h-fix-build-with-gcc-11.patch using patch: patching file src/mongo/db/exec/plan_stats.h >>> mongodb 4.2.18 Configuring >>> mongodb 4.2.18 Building (cd /home/giuliobenetti/autobuild/run/instance-0/output-1/build/mongodb-4.2.18; /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/scons CC="/home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc" CXX="/home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++" -j"5" --disable-minimum-compiler-version-enforcement --disable-warnings-as-errors --use-system-boost --use-system-pcre --use-system-snappy --use-system-sqlite --use-system-yaml --use-system-zlib MONGO_VERSION=4.2.18- --wiredtiger=off --js-engine=none --allocator=system --enable-free-mon=on --enable-http-client=on --ssl=on --ssl-provider=openssl mongod mongos) scons: Reading SConscript files ... scons: running with args /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/scons CC=/home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc CXX=/home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -j5 --disable-minimum-compiler-version-enforcement --disable-warnings-as-errors --use-system-boost --use-system-pcre --use-system-snappy --use-system-sqlite --use-system-yaml --use-system-zlib MONGO_VERSION=4.2.18- --wiredtiger=off --js-engine=none --allocator=system --enable-free-mon=on --enable-http-client=on --ssl=on --ssl-provider=openssl mongod mongos Mkdir("build/scons") scons version: 3.1.2 python version: 3 10 7 'final' 0 CC is /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc resolves to /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/toolchain-wrapper CXX is /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ resolves to /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/toolchain-wrapper Checking whether the C compiler works... yes Checking whether the C++ compiler works... yes Checking that the C++ compiler can link a C++ program... yes Checking if C++ compiler "/home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++" is GCC... yes Checking if C compiler "/home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc" is GCC... yes Detected a arm processor Checking if target OS linux is supported by the toolchain... yes Checking if C compiler is GCC 8.2 or newer...yes Checking if C++ compiler is GCC 8.2 or newer...yes Checking if C compiler supports -Wno-unused-local-typedefs... yes Checking if C compiler supports -Wno-unused-function... yes Checking if C compiler supports -Wno-unused-private-field... no Checking if C compiler supports -Wno-deprecated-declarations... yes Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no Checking if C compiler supports -Wno-tautological-constant-compare... no Checking if C compiler supports -Wno-tautological-unsigned-zero-compare... no Checking if C compiler supports -Wno-tautological-unsigned-enum-zero-compare... no Checking if C compiler supports -Wno-unused-const-variable... yes Checking if C compiler supports -Wno-unused-but-set-variable... yes Checking if C compiler supports -Wno-missing-braces... yes Checking if C compiler supports -Wno-inconsistent-missing-override... no Checking if C compiler supports -Wno-potentially-evaluated-expression... no Checking if C++ compiler supports -Wpessimizing-move... yes Checking if C++ compiler supports -Wredundant-move... yes Checking if C++ compiler supports -Wno-maybe-uninitialized... yes Checking if C++ compiler supports -Wno-undefined-var-template... no Checking if C++ compiler supports -Wno-instantiation-after-specialization... no Checking if C compiler supports -Wno-unused-lambda-capture... no Checking if C compiler supports -Wno-exceptions... yes Checking if C++ compiler supports -fsized-deallocation... yes Checking if C++ compiler supports -Wno-defaulted-function-deleted... no Checking -Wnon-virtual-dtor for false positives... no Checking if C compiler supports -fstack-protector-strong... yes Checking if we are using libstdc++... yes Checking if C++ compiler supports -std=c++17... yes Checking if C compiler supports -std=c11... yes WARNING: System versions of C++ libraries must be compiled with C++14/17 support Checking for C++17... yes Checking for memset_s... no Checking for C function strnlen()... yes Checking for libstdc++ 5.3.0 or better... yes Checking if we are on a POSIX system... yes Checking if the POSIX monotonic clock is supported... yes Checking off_t is 8 bytes... no Checking if linker supports -fuse-ld=gold... no Checking if linker supports -Wl,--build-id... yes Checking if linker supports -Wl,--hash-style=gnu... yes Checking if linker supports -Wl,-z,noexecstack... yes Checking if linker supports -Wl,--warn-execstack... no Checking if linker supports -Wl,-z,relro... yes Checking for glibc with non-broken _FORTIFY_SOURCE...yes Checking if C compiler supports -fno-builtin-memcmp... yes Checking for storage class thread_local yes Checking for C++14 std::enable_if_t support...yes Checking for C++14 std::make_unique support... yes Checking if pthread_setname_np is supported... yes Checking for SSLeay_version(0) in C library crypto... yes Checking for SSL_version(NULL) in C library ssl... yes Checking that linking to OpenSSL works...yes Checking whether FIPS_mode_set is declared... yes Checking whether d2i_ASN1_SEQUENCE_ANY is declared... yes Checking if SSL_[CTX_]_set_ecdh_auto is supported... yes Checking if EC_KEY_new_by_curve_name is supported... yes Using SSL Provider: openssl Checking for C library pcre... yes Checking for C library pcrecpp... yes Checking for C library snappy... yes Checking for C library z... yes Checking for C library yaml-cpp... yes Checking for C++ header file sqlite3.h... yes Checking for C library sqlite3... yes Checking for C++ header file boost/filesystem/operations.hpp... yes Checking if system boost version is 1.49 or newer...yes Checking for C++ library boost_filesystem-mt... no Checking for C++ library boost_filesystem... yes Checking for C++ library boost_program_options-mt... no Checking for C++ library boost_program_options... yes Checking for C++ library boost_system-mt... no Checking for C++ library boost_system... yes Checking for C++ library boost_iostreams-mt... no Checking for C++ library boost_iostreams... yes Checking for C library rt... yes Checking for C library dl... yes Checking for C++ header file execinfo.h... yes Checking whether backtrace is declared... yes Checking whether backtrace_symbols is declared... yes Checking whether backtrace_symbols_fd is declared... yes Checking for C library pcap... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking for extended alignment 64 for concurrency types... yes Checking for mongoc_get_major_version() in C library mongoc-1.0... no Checking for curl_global_init(0) in C library curl... yes Checking for curl_global_init(0) in C library curl... yes scons: done reading SConscript files. scons: Building targets ... /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/util/fail_point_server_parameter_gen.h --output build/opt/mongo/util/fail_point_server_parameter_gen.cpp src/mongo/util/fail_point_server_parameter.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.err src/mongo/base/error_codes.tpl.h=build/opt/mongo/base/error_codes.h src/mongo/base/error_codes.tpl.cpp=build/opt/mongo/base/error_codes.cpp Creating 'build/opt/mongo/config.h' /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/logical_session_id_gen.h --output build/opt/mongo/db/logical_session_id_gen.cpp src/mongo/db/logical_session_id.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/client/read_preference_gen.h --output build/opt/mongo/client/read_preference_gen.cpp src/mongo/client/read_preference.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/fail_point_service.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/fail_point_registry.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/fail_point.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/query/query_knobs_gen.h --output build/opt/mongo/db/query/query_knobs_gen.cpp src/mongo/db/query/query_knobs.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/generic_cursor_gen.h --output build/opt/mongo/db/generic_cursor_gen.cpp src/mongo/db/generic_cursor.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/apply_ops_gen.h --output build/opt/mongo/db/repl/apply_ops_gen.cpp src/mongo/db/repl/apply_ops.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/database_version_gen.h --output build/opt/mongo/s/database_version_gen.cpp src/mongo/s/database_version.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/query/tailable_mode_gen.h --output build/opt/mongo/db/query/tailable_mode_gen.cpp src/mongo/db/query/tailable_mode.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/ops/single_write_result_gen.h --output build/opt/mongo/db/ops/single_write_result_gen.cpp src/mongo/db/ops/single_write_result.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/oplog_entry_gen.h --output build/opt/mongo/db/repl/oplog_entry_gen.cpp src/mongo/db/repl/oplog_entry.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/ops/write_ops_gen.h --output build/opt/mongo/db/ops/write_ops_gen.cpp src/mongo/db/ops/write_ops.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/pipeline/runtime_constants_gen.h --output build/opt/mongo/db/pipeline/runtime_constants_gen.cpp src/mongo/db/pipeline/runtime_constants.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/pipeline/exchange_spec_gen.h --output build/opt/mongo/db/pipeline/exchange_spec_gen.cpp src/mongo/db/pipeline/exchange_spec.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 src/mongo/db/auth/generate_action_types.py src/mongo/db/auth/action_types.txt build/opt/mongo/db/auth/action_type_gen.h build/opt/mongo/db/auth/action_type_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/repl_set_config_gen.h --output build/opt/mongo/db/repl/repl_set_config_gen.cpp src/mongo/db/repl/repl_set_config.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point_server_parameter_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/fail_point_server_parameter_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/repl_settings_gen.h --output build/opt/mongo/db/repl/repl_settings_gen.cpp src/mongo/db/repl/repl_settings.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/sort_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/sort_key_generator.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/sort_key_generator.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/s/transaction_coordinator_document_gen.h --output build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp src/mongo/db/s/transaction_coordinator_document.idl src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/shutdown_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/shutdown_d.cpp In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/sort_key_generator.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/sort_key_generator.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/drop_pending_collection_reaper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/drop_pending_collection_reaper.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/sort_key_generator.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/database_index_builds_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/database_index_builds_tracker.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/fail_point_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/sort_key_generator.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libfail_point.a build/opt/mongo/util/fail_point.o build/opt/mongo/util/fail_point_registry.o build/opt/mongo/util/fail_point_service.o build/opt/mongo/util/fail_point_server_parameter_gen.o Skipping ranlib for thin archive build/opt/mongo/util/libfail_point.a In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/collection_index_builds_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/collection_index_builds_tracker.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/catalog/index_build_entry_gen.h --output build/opt/mongo/db/catalog/index_build_entry_gen.cpp src/mongo/db/catalog/index_build_entry.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/catalog/type_chunk_base_gen.h --output build/opt/mongo/s/catalog/type_chunk_base_gen.cpp src/mongo/s/catalog/type_chunk_base.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_builds_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index_builds_coordinator.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrcase.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrcase.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/cursor_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/cursor_request.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/shutdown.h:34, from src/mongo/db/commands/shutdown_d.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_factory_icu_decoration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_icu_decoration.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/user.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/alphaindex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/alphaindex.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/query/async_results_merger_params_gen.h --output build/opt/mongo/s/query/async_results_merger_params_gen.cpp src/mongo/s/query/async_results_merger_params.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/affixpatternparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/affixpatternparser.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/operation_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/operation_context.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/parsed_aggregation_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_aggregation_projection.cpp ar rcsTD build/opt/mongo/db/query/collation/libcollator_factory_icu.a build/opt/mongo/db/query/collation/collator_factory_icu_decoration.o Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_factory_icu.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/async_requests_sender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/async_requests_sender.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/parsed_aggregation_projection.h:38, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/pipeline/parsed_aggregation_projection.h:40, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/pipeline/parsed_aggregation_projection.h:40, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/pipeline/parsed_aggregation_projection.h:40, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/view_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/views/view_graph.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/view.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/views/view.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/index_builds_coordinator.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/utility/compare_pointees.hpp:15, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:61, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/db/views/view_graph.h:31, from src/mongo/db/views/view_graph.cpp:32: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:67, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/utility/compare_pointees.hpp:15, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:61, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/db/views/view_graph.h:31, from src/mongo/db/views/view_graph.cpp:32: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::ViewGraph::_validateChildren(uint64_t, uint64_t, int, mongo::ViewGraph::StatsMap*, std::vector*)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h:1198:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1198 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/view_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/views/view_catalog.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp In file included from src/mongo/db/views/resolved_view.h:37, from src/mongo/db/views/view_catalog.h:43, from src/mongo/db/views/view_catalog.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/kill_sessions_gen.h --output build/opt/mongo/db/kill_sessions_gen.cpp src/mongo/db/kill_sessions.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/killcursors_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/killcursors_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/views/view_catalog.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/views/view_catalog.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/views/view_catalog.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:31: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:84:25: warning: redundant move in return statement [-Wredundant-move] 84 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:84:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:139:25: warning: redundant move in return statement [-Wredundant-move] 139 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:139:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:176:25: warning: redundant move in return statement [-Wredundant-move] 176 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:176:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:31: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libasync_requests_sender.a build/opt/mongo/s/async_requests_sender.o Skipping ranlib for thin archive build/opt/mongo/s/libasync_requests_sender.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/oplog_application_checks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/oplog_application_checks.cpp ar rcsTD build/opt/mongo/db/libindex_builds_coordinator_interface.a build/opt/mongo/db/collection_index_builds_tracker.o build/opt/mongo/db/database_index_builds_tracker.o build/opt/mongo/db/index_builds_coordinator.o Skipping ranlib for thin archive build/opt/mongo/db/libindex_builds_coordinator_interface.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/expression_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/expression_context.cpp src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaAllElemMatchFromIndexMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:55:21: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:55:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:31: src/mongo/db/matcher/expression_with_placeholder.h: In member function 'virtual bool mongo::InternalSchemaAllElemMatchFromIndexMatchExpression::matchesArray(const mongo::BSONObj&, mongo::MatchDetails*) const': src/mongo/db/matcher/expression_with_placeholder.h:77:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 77 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/variables.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/variables.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/expression_context.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/db/pipeline/stub_mongo_process_interface.h:33, from src/mongo/db/pipeline/expression_context.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/db/pipeline/stub_mongo_process_interface.h:33, from src/mongo/db/pipeline/expression_context.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/db/pipeline/stub_mongo_process_interface.h:33, from src/mongo/db/pipeline/expression_context.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/catalog_cache_loader.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/update_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/update_metrics.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libexpression_context.a build/opt/mongo/db/pipeline/expression_context.o build/opt/mongo/db/pipeline/variables.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libexpression_context.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/eof.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/eof.cpp In file included from src/mongo/platform/decimal128.h:40, from src/mongo/platform/endian.h:39, from src/mongo/base/data_range.h:39, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:44, from src/mongo/bson/mutable/element.h:36, from src/mongo/db/auth/privilege.h:34, from src/mongo/db/commands.h:40, from src/mongo/bson/util/bson_check.h:34, from src/mongo/db/commands/oplog_application_checks.cpp:31: src/mongo/db/commands/oplog_application_checks.cpp: In static member function 'static mongo::UUID mongo::OplogApplicationChecks::getUUIDFromOplogEntry(const mongo::BSONObj&)': src/mongo/db/commands/oplog_application_checks.cpp:41:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 41 | return uassertStatusOK(UUID::parse(uiElem)); | ~~~~~~~~~~~^~~~~~~~ src/mongo/util/assert_util.h:373:67: note: in definition of macro 'uassertStatusOK' 373 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ ar rcsTD build/opt/mongo/db/views/libviews.a build/opt/mongo/db/views/view.o build/opt/mongo/db/views/view_catalog.o build/opt/mongo/db/views/view_graph.o Skipping ranlib for thin archive build/opt/mongo/db/views/libviews.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/tokenizer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_basic_phrase_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_basic_phrase_matcher.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/query/count_command_gen.h --output build/opt/mongo/db/query/count_command_gen.cpp src/mongo/db/query/count_command.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/background.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbhelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/dbhelpers.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/interval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/interval.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/legacy_reply.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/legacy_reply.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/split_vector_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/split_vector_command.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/abseil-cpp-master/abseil-cpp src/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/hash.cc /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/auto_split_vector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/auto_split_vector.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/clientcursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/clientcursor.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_tee_consumer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_tee_consumer.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/auto_split_vector.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/auto_split_vector.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/auto_split_vector.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/auto_split_vector.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/dbhelpers.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:35, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/split_vector_command.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/auto_split_vector.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/storage/storage_parameters_gen.h --output build/opt/mongo/db/storage/storage_parameters_gen.cpp src/mongo/db/storage/storage_parameters.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/zstandard-1.3.7/zstd/lib/decompress/zstd_decompress.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.3.7/zstd/lib/common -Isrc/third_party/zstandard-1.3.7/zstd/lib/common -Isrc/third_party/zstandard-1.3.7/zstd/lib src/third_party/zstandard-1.3.7/zstd/lib/decompress/zstd_decompress.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/storage/storage_parameters_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/clientcursor.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libdbhelpers.a build/opt/mongo/db/dbhelpers.o Skipping ranlib for thin archive build/opt/mongo/db/libdbhelpers.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/auth_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/auth_op_observer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/replication_coordinator_impl_gen.h --output build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp src/mongo/db/repl/replication_coordinator_impl.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/repl_server_parameters_gen.h --output build/opt/mongo/db/repl/repl_server_parameters_gen.cpp src/mongo/db/repl/repl_server_parameters.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/mongod_options_storage_gen.h --output build/opt/mongo/db/mongod_options_storage_gen.cpp src/mongo/db/mongod_options_storage.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/replication_metrics_gen.h --output build/opt/mongo/db/repl/replication_metrics_gen.cpp src/mongo/db/repl/replication_metrics.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/vote_requester.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/vote_requester.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/election_reason_counter_gen.h --output build/opt/mongo/db/repl/election_reason_counter_gen.cpp src/mongo/db/repl/election_reason_counter.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_heartbeat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/storage/storage_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/memory:66, from src/mongo/db/repl/vote_requester.h:32, from src/mongo/db/repl/vote_requester.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h: In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = mongo::repl::MemberConfig*; bool _TrivialValueTypes = false]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:85:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 85 | __uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:85:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h: In copy constructor 'mongo::repl::ReplSetConfig::ReplSetConfig(const mongo::repl::ReplSetConfig&)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:151:22: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 148 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 149 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 150 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 151 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from src/mongo/db/repl/vote_requester.h:33, from src/mongo/db/repl/vote_requester.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::executor::RemoteCommandRequestImpl}; _Tp = mongo::executor::RemoteCommandRequestImpl; _Alloc = std::allocator >]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'virtual std::vector > mongo::repl::VoteRequester::Algorithm::getRequests() const': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/op_observer.h:35, from src/mongo/db/auth/auth_op_observer.h:32, from src/mongo/db/auth/auth_op_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_config_checks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_config_checks.cpp src/mongo/db/auth/auth_op_observer.cpp: In member function 'virtual void mongo::AuthOpObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/auth/auth_op_observer.cpp:51:6: note: parameter passing for argument of type 'std::vector::const_iterator' changed in GCC 7.1 51 | void AuthOpObserver::onInserts(OperationContext* opCtx, | ^~~~~~~~~~~~~~ src/mongo/db/auth/auth_op_observer.cpp:51:6: note: parameter passing for argument of type 'std::vector::const_iterator' changed in GCC 7.1 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/check_quorum_for_config_change.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/check_quorum_for_config_change.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/repl/replication_coordinator_impl_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_elect_v1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/projection_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/projection_exec.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:66, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/pstl/glue_algorithm_defs.h:13, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/algorithm:74, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:38: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h: In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = mongo::repl::MemberConfig*; bool _TrivialValueTypes = false]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:85:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 85 | __uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:85:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h: In copy constructor 'mongo::repl::ReplSetConfig::ReplSetConfig(const mongo::repl::ReplSetConfig&)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:151:22: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 148 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 149 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 150 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 151 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/pstl/glue_algorithm_defs.h:13, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/algorithm:74, from src/mongo/base/string_data.h:32, from build/opt/mongo/base/error_codes.h:36, from src/mongo/base/status.h:35, from src/mongo/db/repl/check_quorum_for_config_change.h:32, from src/mongo/db/repl/check_quorum_for_config_change.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::executor::RemoteCommandRequestImpl}; _Tp = mongo::executor::RemoteCommandRequestImpl; _Alloc = std::allocator >]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'virtual std::vector > mongo::repl::QuorumChecker::getRequests() const': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/exec/projection_exec.h:37, from src/mongo/db/exec/projection_exec.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/exec/projection_exec.h:37, from src/mongo/db/exec/projection_exec.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/exec/projection_exec.h:37, from src/mongo/db/exec/projection_exec.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/rotatable_file_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/rotatable_file_manager.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/exec/projection_exec.h:37, from src/mongo/db/exec/projection_exec.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/explain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/explain.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/exec/projection_exec.h:37, from src/mongo/db/exec/projection_exec.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/client/global_conn_pool_gen.h --output build/opt/mongo/client/global_conn_pool_gen.cpp src/mongo/client/global_conn_pool.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/global_conn_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/global_conn_pool.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/query/explain.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/query/explain.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/query/explain.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/query/explain.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/traffic_recorder_gen.h --output build/opt/mongo/db/traffic_recorder_gen.cpp src/mongo/db/traffic_recorder.idl In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/traffic_recorder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/traffic_recorder.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:40, from src/mongo/db/repl/initial_syncer.h:43, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/query/explain.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/router_transactions_stats_gen.h --output build/opt/mongo/s/router_transactions_stats_gen.cpp src/mongo/s/router_transactions_stats.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/txn_cmds_gen.h --output build/opt/mongo/db/commands/txn_cmds_gen.cpp src/mongo/db/commands/txn_cmds.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/router_transactions_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/router_transactions_metrics.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/txn_cmds_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/txn_cmds_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/map:60, from src/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/hash.h:32, from src/third_party/abseil-cpp-master/abseil-cpp/absl/hash/hash.h:64, from src/third_party/abseil-cpp-master/abseil-cpp/absl/container/internal/hash_function_defaults.h:55, from src/third_party/abseil-cpp-master/abseil-cpp/absl/container/flat_hash_map.h:40, from src/mongo/util/string_map.h:32, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:46, from src/mongo/bson/timestamp.h:33, from src/mongo/db/repl/replication_coordinator_impl.h:37, from src/mongo/db/repl/replication_coordinator_impl.cpp:36: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = mongo::repl::OpTimeAndWallTime; _Val = mongo::repl::OpTimeAndWallTime; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h:2492:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' changed in GCC 7.1 2492 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h:2492:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' changed in GCC 7.1 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h:2492:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' changed in GCC 7.1 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/traffic_recorder_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/traffic_recorder_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h: In member function 'mongo::repl::ReplicationCoordinatorImpl::PostMemberStateUpdateAction mongo::repl::ReplicationCoordinatorImpl::_updateMemberStateFromTopologyCoordinator(mongo::WithLock)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h:1238:21: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' changed in GCC 7.1 1238 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h: In member function 'void mongo::repl::ReplicationCoordinatorImpl::_cleanupStableOpTimeCandidates(std::set*, mongo::repl::OpTimeAndWallTime)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h:1238:21: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' changed in GCC 7.1 1238 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h: In member function 'void mongo::repl::ReplicationCoordinatorImpl::cleanupStableOpTimeCandidates_forTest(std::set*, mongo::repl::OpTimeAndWallTime)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h:1238:21: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' changed in GCC 7.1 1238 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/memory:66, from src/mongo/db/repl/replication_coordinator_impl.h:32, from src/mongo/db/repl/replication_coordinator_impl.cpp:36: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h: In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = mongo::repl::MemberConfig*; bool _TrivialValueTypes = false]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:85:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 85 | __uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:85:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h: In copy constructor 'mongo::repl::ReplSetConfig::ReplSetConfig(const mongo::repl::ReplSetConfig&)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:151:22: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 148 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 149 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 150 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 151 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h: In member function 'mongo::Status mongo::repl::ReplicationCoordinatorImpl::_checkIfCommitQuorumCanBeSatisfied(mongo::WithLock, const mongo::CommitQuorumOptions&) const': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:151:22: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 148 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 149 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 150 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 151 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h: In member function 'mongo::repl::ReplicationCoordinatorImpl::PostMemberStateUpdateAction mongo::repl::ReplicationCoordinatorImpl::_setCurrentRSConfig(mongo::WithLock, mongo::OperationContext*, const mongo::repl::ReplSetConfig&, int)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_uninitialized.h:151:22: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 148 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 149 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 150 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 151 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/traffic_recorder.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librepl_coordinator_impl.a build/opt/mongo/db/repl/check_quorum_for_config_change.o build/opt/mongo/db/repl/repl_set_config_checks.o build/opt/mongo/db/repl/replication_coordinator_impl.o build/opt/mongo/db/repl/replication_coordinator_impl_elect_v1.o build/opt/mongo/db/repl/replication_coordinator_impl_heartbeat.o build/opt/mongo/db/repl/vote_requester.o build/opt/mongo/db/repl/replication_coordinator_impl_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_coordinator_impl.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/traffic_recorder_validators.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/traffic_recorder_validators.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/traffic_recorder_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/txn_cmds_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/router_transactions_metrics.h:35, from src/mongo/s/router_transactions_metrics.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.h --output build/opt/mongo/db/commands/txn_two_phase_commit_cmds_gen.cpp src/mongo/db/commands/txn_two_phase_commit_cmds.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_util.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_system_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_system_stats.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/expression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/expression.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libtraffic_recorder.a build/opt/mongo/db/traffic_recorder.o build/opt/mongo/db/traffic_recorder_validators.o build/opt/mongo/db/traffic_recorder_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libtraffic_recorder.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_mongod.cpp ar rcsTD build/opt/mongo/db/catalog/libindex_catalog.a build/opt/mongo/db/catalog/index_catalog.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_catalog.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/rpc/metadata/impersonated_user_metadata_gen.h --output build/opt/mongo/rpc/metadata/impersonated_user_metadata_gen.cpp src/mongo/rpc/metadata/impersonated_user_metadata.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/authenticate.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/impersonation_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/impersonation_session.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/expression.h:45, from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression.cpp:55: src/mongo/util/summation.h: In member function 'mongo::DoubleDouble mongo::DoubleDoubleSummation::getDoubleDouble() const': src/mongo/util/summation.h:85:42: note: parameter passing for argument of type 'std::pair' when C++17 is enabled changed to match C++14 in GCC 10.1 85 | DoubleDouble getDoubleDouble() const { | ^ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/ftdc/ftdc_server.h:35, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/ftdc/ftdc_server.h:35, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/ftdc/ftdc_server.h:35, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/ftdc/ftdc_server.h:35, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/client/authenticate.cpp: In function 'mongo::StatusWith > mongo::auth::{anonymous}::extractDBField(const mongo::BSONObj&)': src/mongo/client/authenticate.cpp:78:21: warning: redundant move in return statement [-Wredundant-move] 78 | return std::move(db); | ~~~~~~~~~^~~~ src/mongo/client/authenticate.cpp:78:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArray]': src/mongo/db/pipeline/expression.cpp:190:33: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] 343 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAbs]': src/mongo/db/pipeline/expression.cpp:260:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAdd]': src/mongo/db/pipeline/expression.cpp:342:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAllElementsTrue]': src/mongo/db/pipeline/expression.cpp:364:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAnd]': src/mongo/db/pipeline/expression.cpp:438:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAnyElementTrue]': src/mongo/db/pipeline/expression.cpp:460:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArrayElemAt]': src/mongo/db/pipeline/expression.cpp:544:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionObjectToArray]': src/mongo/db/pipeline/expression.cpp:577:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArrayToObject]': src/mongo/db/pipeline/expression.cpp:688:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionCeil]': src/mongo/db/pipeline/expression.cpp:709:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionConcat]': src/mongo/db/pipeline/expression.cpp:870:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionConcatArrays]': src/mongo/db/pipeline/expression.cpp:898:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionCond]': src/mongo/db/pipeline/expression.cpp:916:22: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDivide]': src/mongo/db/pipeline/expression.cpp:1874:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionExp]': src/mongo/db/pipeline/expression.cpp:1889:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFloor]': src/mongo/db/pipeline/expression.cpp:2299:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMod]': src/mongo/db/pipeline/expression.cpp:2670:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMultiply]': src/mongo/db/pipeline/expression.cpp:2741:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIfNull]': src/mongo/db/pipeline/expression.cpp:2757:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIn]': src/mongo/db/pipeline/expression.cpp:2780:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfArray]': src/mongo/db/pipeline/expression.cpp:2929:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfBytes]': src/mongo/db/pipeline/expression.cpp:2994:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfCP]': src/mongo/db/pipeline/expression.cpp:3081:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLn]': src/mongo/db/pipeline/expression.cpp:3102:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLog]': src/mongo/db/pipeline/expression.cpp:3146:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLog10]': src/mongo/db/pipeline/expression.cpp:3168:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionNot]': src/mongo/db/pipeline/expression.cpp:3305:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionOr]': src/mongo/db/pipeline/expression.cpp:3375:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionPow]': src/mongo/db/pipeline/expression.cpp:3596:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionRange]': src/mongo/db/pipeline/expression.cpp:3672:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionReverseArray]': src/mongo/db/pipeline/expression.cpp:3787:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetDifference]': src/mongo/db/pipeline/expression.cpp:3834:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetEquals]': src/mongo/db/pipeline/expression.cpp:3876:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetIntersection]': src/mongo/db/pipeline/expression.cpp:3923:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetIsSubset]': src/mongo/db/pipeline/expression.cpp:4015:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetUnion]': src/mongo/db/pipeline/expression.cpp:4040:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsArray]': src/mongo/db/pipeline/expression.cpp:4052:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSlice]': src/mongo/db/pipeline/expression.cpp:4138:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSize]': src/mongo/db/pipeline/expression.cpp:4155:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSplit]': src/mongo/db/pipeline/expression.cpp:4211:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSqrt]': src/mongo/db/pipeline/expression.cpp:4233:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrcasecmp]': src/mongo/db/pipeline/expression.cpp:4257:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubstrBytes]': src/mongo/db/pipeline/expression.cpp:4318:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubstrCP]': src/mongo/db/pipeline/expression.cpp:4392:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrLenBytes]': src/mongo/db/pipeline/expression.cpp:4415:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrLenCP]': src/mongo/db/pipeline/expression.cpp:4440:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubtract]': src/mongo/db/pipeline/expression.cpp:4492:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionToLower]': src/mongo/db/pipeline/expression.cpp:4644:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionToUpper]': src/mongo/db/pipeline/expression.cpp:4658:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionRound]': src/mongo/db/pipeline/expression.cpp:4978:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionTrunc]': src/mongo/db/pipeline/expression.cpp:5012:58: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionType]': src/mongo/db/pipeline/expression.cpp:5027:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/planner_analysis.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/planner_analysis.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/ftdc/ftdc_server.h:35, from src/mongo/db/ftdc/ftdc_mongod.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/cmemory.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cmemory.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/zstandard-1.3.7/zstd/lib/common/error_private.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.3.7/zstd/lib/common -Isrc/third_party/zstandard-1.3.7/zstd/lib/common -Isrc/third_party/zstandard-1.3.7/zstd/lib src/third_party/zstandard-1.3.7/zstd/lib/common/error_private.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_first.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_first.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_impl.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_util.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/tuple:41, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:54, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/pstl/glue_algorithm_defs.h:13, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/algorithm:74, from src/mongo/db/pipeline/expression.h:34, from src/mongo/db/pipeline/expression.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/invoke.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = boost::intrusive_ptr (*)(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&); _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/invoke.h:61:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 61 | { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } | ^ In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/expression.h:45, from src/mongo/db/pipeline/accumulator.h:40, from src/mongo/db/pipeline/accumulator_first.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:40, from src/mongo/db/storage/storage_engine_impl.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/accumulator.h:46, from src/mongo/db/pipeline/accumulator_first.cpp:32: src/mongo/util/summation.h: In member function 'mongo::DoubleDouble mongo::DoubleDoubleSummation::getDoubleDouble() const': src/mongo/util/summation.h:85:42: note: parameter passing for argument of type 'std::pair' when C++17 is enabled changed to match C++14 in GCC 10.1 85 | DoubleDouble getDoubleDouble() const { | ^ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:40, from src/mongo/db/storage/storage_engine_impl.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:40, from src/mongo/db/storage/storage_engine_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:40, from src/mongo/db/storage/storage_engine_impl.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/planner_analysis.h:32, from src/mongo/db/query/planner_analysis.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionConstant::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:951:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 951 | intrusive_ptr ExpressionConstant::parse( | ^~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/replication_consistency_markers_gen.h --output build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp src/mongo/db/repl/replication_consistency_markers.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_consistency_markers_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_consistency_markers_impl.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from src/mongo/db/s/transaction_coordinator_util.h:32, from src/mongo/db/s/transaction_coordinator_util.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::txn::TransactionCoordinatorDocument&}; _Tp = mongo::txn::TransactionCoordinatorDocument; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionMeta::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:2555:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2555 | intrusive_ptr ExpressionMeta::parse( | ^~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/storage/durable_catalog_impl.h:37, from src/mongo/db/storage/durable_catalog_feature_tracker.h:36, from src/mongo/db/storage/storage_engine_impl.h:40, from src/mongo/db/storage/storage_engine_impl.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/cluster_last_error_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/cluster_last_error_info.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:67, from src/mongo/db/s/transaction_coordinator_util.h:32, from src/mongo/db/s/transaction_coordinator_util.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h: In function 'std::vector mongo::txn::readAllCoordinatorDocs(mongo::OperationContext*)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h:1198:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1198 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionObject::parse(const boost::intrusive_ptr&, mongo::BSONObj, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1928:40: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 1928 | children.push_back(parseOperand(expCtx, elem, vps)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::Expression::parseOperand(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:178:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 178 | intrusive_ptr Expression::parseOperand( | ^~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp:192:66: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 192 | return ExpressionConstant::parse(expCtx, exprElement, vps); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static mongo::Expression::ExpressionVector mongo::ExpressionNary::parseArguments(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:162:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 162 | Expression::ExpressionVector ExpressionNary::parseArguments( | ^~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:169:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 169 | out.push_back(Expression::parseOperand(expCtx, elem, vps)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:172:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 172 | out.push_back(Expression::parseOperand(expCtx, exprElement, vps)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAbs]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAdd]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAllElementsTrue]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAnd]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAnyElementTrue]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArrayElemAt]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionObjectToArray]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArrayToObject]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionCeil]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionCompare::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&, mongo::ExpressionCompare::CmpOp)': src/mongo/db/pipeline/expression.cpp:780:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 780 | intrusive_ptr ExpressionCompare::parse( | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:786:65: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 786 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = mongo::{anonymous}::BoundOp; _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': src/mongo/db/pipeline/expression.cpp:767:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 767 | return ExpressionCompare::parse(expCtx, std::move(bsonExpr), vps, op); | ^ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionConcat]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionConcatArrays]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDivide]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionExp]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFloor]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMod]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMultiply]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIfNull]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIn]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfArray]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfBytes]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfCP]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLn]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLog]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLog10]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionNot]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionOr]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionPow]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionRange]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionReverseArray]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetDifference]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetEquals]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetIntersection]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetIsSubset]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetUnion]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsArray]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSlice]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSize]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSplit]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSqrt]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrcasecmp]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubstrBytes]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubstrCP]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrLenBytes]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrLenCP]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubtract]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionToLower]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionToUpper]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionRound]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionTrunc::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:4991:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4991 | intrusive_ptr ExpressionTrunc::parse(const intrusive_ptr& expCtx, | ^~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionType]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = mongo::{anonymous}::makeConversionAlias(mongo::StringData, mongo::BSONType)::&, mongo::BSONElement, const mongo::VariablesParseState&)>; _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': src/mongo/db/pipeline/expression.cpp:5642:73: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 5642 | auto operands = ExpressionNary::parseArguments(expCtx, elem, vps); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionCond::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:911:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 911 | intrusive_ptr ExpressionCond::parse( | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp:926:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 926 | ret->_children[0] = parseOperand(expCtx, arg, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:928:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 928 | ret->_children[1] = parseOperand(expCtx, arg, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:930:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 930 | ret->_children[2] = parseOperand(expCtx, arg, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionDateFromParts::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1027:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1027 | intrusive_ptr ExpressionDateFromParts::parse( | ^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1095:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1095 | yearElem ? parseOperand(expCtx, yearElem, vps) : nullptr, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1096:19: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1096 | monthElem ? parseOperand(expCtx, monthElem, vps) : nullptr, | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1097:17: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1097 | dayElem ? parseOperand(expCtx, dayElem, vps) : nullptr, | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1098:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1098 | hourElem ? parseOperand(expCtx, hourElem, vps) : nullptr, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1099:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1099 | minuteElem ? parseOperand(expCtx, minuteElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1100:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1100 | secondElem ? parseOperand(expCtx, secondElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1101:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1101 | millisecondElem ? parseOperand(expCtx, millisecondElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1102:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1102 | isoWeekYearElem ? parseOperand(expCtx, isoWeekYearElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1103:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1103 | isoWeekElem ? parseOperand(expCtx, isoWeekElem, vps) : nullptr, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1104:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1104 | isoDayOfWeekElem ? parseOperand(expCtx, isoDayOfWeekElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1105:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1105 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) : nullptr); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionDateFromString::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1367:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1367 | intrusive_ptr ExpressionDateFromString::parse( | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1404:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1404 | parseOperand(expCtx, dateStringElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1405:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1405 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) : nullptr, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1406:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1406 | formatElem ? parseOperand(expCtx, formatElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1407:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1407 | onNullElem ? parseOperand(expCtx, onNullElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1408:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1408 | onErrorElem ? parseOperand(expCtx, onErrorElem, vps) : nullptr); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionDateToParts::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1550:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1550 | intrusive_ptr ExpressionDateToParts::parse( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1584:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1584 | parseOperand(expCtx, dateElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1585:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1585 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) : nullptr, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1586:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1586 | isoDateElem ? parseOperand(expCtx, isoDateElem, vps) : nullptr); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionDateToString::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1699:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1699 | intrusive_ptr ExpressionDateToString::parse( | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1731:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1731 | parseOperand(expCtx, dateElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1732:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1732 | formatElem ? parseOperand(expCtx, formatElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1733:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1733 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1734 | : nullptr, | ~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1735:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1735 | onNullElem ? parseOperand(expCtx, onNullElem, vps) : nullptr); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionFilter::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:2180:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2180 | intrusive_ptr ExpressionFilter::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2209:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2209 | intrusive_ptr input = parseOperand(expCtx, inputElem, vpsIn); | ^ src/mongo/db/pipeline/expression.cpp:2221:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2221 | intrusive_ptr cond = parseOperand(expCtx, condElem, vpsSub); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionLet::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:2307:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2307 | intrusive_ptr ExpressionLet::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2339:40: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 2339 | children.push_back(parseOperand(expCtx, varElem, vpsIn)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2355:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2355 | inPtr = parseOperand(expCtx, inElem, vpsSub); // has our vars | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionMap::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:2416:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2416 | intrusive_ptr ExpressionMap::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2447:46: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2447 | parseOperand(expCtx, inputElem, vpsIn); // only has outer vars | ^ src/mongo/db/pipeline/expression.cpp:2460:44: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2460 | parseOperand(expCtx, inElem, vpsSub); // has access to map variable | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionReduce::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:3680:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 3680 | intrusive_ptr ExpressionReduce::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3702:33: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3702 | input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3704:35: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3704 | initial = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3706:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3706 | in = parseOperand(expCtx, elem, vpsSub); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionSwitch::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:4517:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4517 | boost::intrusive_ptr ExpressionSwitch::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4550:50: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4550 | switchCase = parseOperand(expCtx, branchElement, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4552:50: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4552 | switchThen = parseOperand(expCtx, branchElement, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4569:38: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4569 | expDefault = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionTrim::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:4669:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4669 | intrusive_ptr ExpressionTrim::parse( | ^~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4692:33: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4692 | input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4694:38: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4694 | characters = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionZip::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:5035:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 5035 | intrusive_ptr ExpressionZip::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5058:48: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5058 | children.push_back(parseOperand(expCtx, subExpr, vps)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5066:59: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5066 | tempDefaultChildren.push_back(parseOperand(expCtx, subExpr, vps)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionConvert::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:5690:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 5690 | intrusive_ptr ExpressionConvert::parse( | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5706:33: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5706 | input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5708:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5708 | to = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5710:35: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5710 | onError = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5712:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5712 | onNull = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In function 'auto mongo::{anonymous}::CommonRegexParse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&, mongo::StringData)': src/mongo/db/pipeline/expression.cpp:5837:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 5837 | auto CommonRegexParse(const boost::intrusive_ptr& expCtx, | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5854:52: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5854 | parsed.input = Expression::parseOperand(expCtx, elem, vpsIn); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5856:52: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5856 | parsed.regex = Expression::parseOperand(expCtx, elem, vpsIn); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5858:54: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5858 | parsed.options = Expression::parseOperand(expCtx, elem, vpsIn); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionRegexFind::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:6132:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 6132 | boost::intrusive_ptr ExpressionRegexFind::parse( | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:6137:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 6137 | auto [input, regex, options] = CommonRegexParse(expCtx, expr, vpsIn, opName); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionRegexFindAll::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:6156:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 6156 | boost::intrusive_ptr ExpressionRegexFindAll::parse( | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:6161:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 6161 | auto [input, regex, options] = CommonRegexParse(expCtx, expr, vpsIn, opName); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionRegexMatch::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:6220:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 6220 | boost::intrusive_ptr ExpressionRegexMatch::parse( | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:6225:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 6225 | auto [input, regex, options] = CommonRegexParse(expCtx, expr, vpsIn, opName); | ^ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDayOfMonth]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDayOfWeek]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDayOfYear]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionHour]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsoDayOfWeek]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsoWeek]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsoWeekYear]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMillisecond]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMinute]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMonth]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSecond]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionWeek]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionYear]': src/mongo/db/pipeline/expression.h:645:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 645 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:666:30: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 666 | date = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:668:34: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 668 | timeZone = Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:692:96: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 692 | Expression::parseOperand(expCtx, elems[0], variablesParseState)); | ^ src/mongo/db/pipeline/expression.h:697:96: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 697 | Expression::parseOperand(expCtx, operatorElem, variablesParseState)); | ^ ar rcsTD build/opt/mongo/s/libcluster_last_error_info.a build/opt/mongo/s/cluster_last_error_info.o Skipping ranlib for thin archive build/opt/mongo/s/libcluster_last_error_info.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dangical.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dangical.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/bgsync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/bgsync.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/session_txn_record_gen.h --output build/opt/mongo/db/session_txn_record_gen.cpp src/mongo/db/session_txn_record.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/transaction_participant_gen.h --output build/opt/mongo/db/transaction_participant_gen.cpp src/mongo/db/transaction_participant.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/transactions_stats_gen.h --output build/opt/mongo/db/transactions_stats_gen.cpp src/mongo/db/transactions_stats.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/session_update_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/session_update_tracker.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/options_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/options_parser.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/zstandard-1.3.7/zstd/lib/dictBuilder/fastcover.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Ibuild/opt/third_party/zstandard-1.3.7/zstd/lib/common -Isrc/third_party/zstandard-1.3.7/zstd/lib/common -Isrc/third_party/zstandard-1.3.7/zstd/lib src/third_party/zstandard-1.3.7/zstd/lib/dictBuilder/fastcover.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coll.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/coll.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index_builder.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:41, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:41, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:41, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/free_mon/free_mon_storage_gen.h --output build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp src/mongo/db/free_mon/free_mon_storage.idl In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:41, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_storage_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from src/mongo/db/repl/session_update_tracker.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:41, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucol.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/utility/compare_pointees.hpp:15, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:61, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/db/repl/session_update_tracker.h:32, from src/mongo/db/repl/session_update_tracker.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::repl::OplogEntry}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'std::vector mongo::repl::SessionUpdateTracker::_flushForQueryPredicate(const mongo::BSONObj&)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'std::vector mongo::repl::SessionUpdateTracker::flushAll()': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/current_op_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/current_op_common.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/security_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/security_file.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/time_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/time_support.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrenum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrenum.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_impl.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/compactdecimalformat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/compactdecimalformat.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/current_op_common.h:34, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/current_op_common.h:34, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/current_op_common.h:34, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/util/net/ssl_parameters_gen.h --output build/opt/mongo/util/net/ssl_parameters_gen.cpp src/mongo/util/net/ssl_parameters.idl In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/current_op_common.h:34, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libbgsync.a build/opt/mongo/db/repl/bgsync.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libbgsync.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_manager_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_manager_openssl.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/util/net/ssl_parameters_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_stream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_stream.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/current_op_common.h:34, from src/mongo/db/commands/current_op_common.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_parameters.cpp ar rcsTD build/opt/mongo/db/commands/libcurrent_op_common.a build/opt/mongo/db/commands/current_op_common.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libcurrent_op_common.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/private/ssl_expiration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/private/ssl_expiration.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/network_interface_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/network_interface_factory.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/util/net/ssl_parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_text_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text_noop.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/geo/hash.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/shard_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/shard_filter.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/util/net/ssl_manager.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/executor/libnetwork_interface_factory.a build/opt/mongo/executor/network_interface_factory.o Skipping ranlib for thin archive build/opt/mongo/executor/libnetwork_interface_factory.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/get_shard_map_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/get_shard_map_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/expression_text_noop.h:33, from src/mongo/db/matcher/expression_text_noop.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_text_noop.cpp: In member function 'virtual std::unique_ptr mongo::TextNoOpMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_text_noop.cpp:58:21: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text_noop.cpp:58:21: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/pstl/glue_algorithm_defs.h:13, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/algorithm:74, from src/mongo/base/string_data.h:32, from src/mongo/db/jsobj.h:43, from src/mongo/db/geo/hash.h:32, from src/mongo/db/geo/hash.cpp:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::GeoHash&}; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::GeoHash}; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:67, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/pstl/glue_algorithm_defs.h:13, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/algorithm:74, from src/mongo/base/string_data.h:32, from src/mongo/db/jsobj.h:43, from src/mongo/db/geo/hash.h:32, from src/mongo/db/geo/hash.cpp:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h: In member function 'void mongo::GeoHash::appendVertexNeighbors(unsigned int, std::vector*) const': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h:1198:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1198 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/pstl/glue_algorithm_defs.h:13, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/algorithm:74, from src/mongo/base/string_data.h:32, from src/mongo/db/jsobj.h:43, from src/mongo/db/geo/hash.h:32, from src/mongo/db/geo/hash.cpp:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/flush_router_config_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/commands/flush_router_config_cmd.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_types.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/ssl_types.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/matchable.h:35, from src/mongo/db/exec/shard_filterer.h:32, from src/mongo/db/exec/shard_filterer_impl.h:32, from src/mongo/db/exec/shard_filter.h:33, from src/mongo/db/exec/shard_filter.cpp:34: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::WorkingSetMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:149:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 149 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:149:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/thread_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/concurrency/thread_pool.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/net/libssl_manager.a build/opt/mongo/util/net/private/ssl_expiration.o build/opt/mongo/util/net/ssl_manager.o build/opt/mongo/util/net/ssl_parameters.o build/opt/mongo/util/net/ssl_manager_openssl.o build/opt/mongo/util/net/ssl_stream.o build/opt/mongo/util/net/ssl_parameters_gen.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_manager.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/path_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/path_internal.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/net/libssl_types.a build/opt/mongo/util/net/ssl_types.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_types.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/path.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/get_shard_map_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/concurrency/libthread_pool.a build/opt/mongo/util/concurrency/thread_pool.o Skipping ranlib for thin archive build/opt/mongo/util/concurrency/libthread_pool.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_extensions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_extensions.cpp src/mongo/db/matcher/path.cpp: In member function 'void mongo::ElementIterator::Context::reset(mongo::BSONElement, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:51:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 51 | void ElementIterator::Context::reset(BSONElement element, BSONElement arrayOffset) { | ^~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:51:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/path.cpp: In member function 'void mongo::BSONElementIterator::_setTraversalStart(size_t, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:125:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 125 | void BSONElementIterator::_setTraversalStart(size_t suffixIndex, BSONElement elementToIterate) { | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In member function 'void mongo::BSONElementIterator::reset(const mongo::ElementPath*, size_t, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:99:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 99 | void BSONElementIterator::reset(const ElementPath* path, | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:105:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 105 | _setTraversalStart(suffixIndex, elementToIterate); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In member function 'void mongo::BSONElementIterator::ArrayIterationState::startIterator(mongo::BSONElement)': src/mongo/db/matcher/path.cpp:158:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 158 | void BSONElementIterator::ArrayIterationState::startIterator(BSONElement e) { | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In constructor 'mongo::BSONElementIterator::BSONElementIterator(const mongo::ElementPath*, size_t, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:84:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 84 | BSONElementIterator::BSONElementIterator(const ElementPath* path, | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:88:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 88 | _setTraversalStart(suffixIndex, elementToIterate); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In member function 'virtual bool mongo::BSONElementIterator::more()': src/mongo/db/matcher/path.cpp:260:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 260 | _arrayIterationState.startIterator(_traversalStart); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:318:61: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 318 | real->_arrayIterationState.startIterator(eltInArray); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coleitr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/coleitr.cpp ar rcsTD build/opt/mongo/db/matcher/libpath.a build/opt/mongo/db/matcher/path.o build/opt/mongo/db/matcher/path_internal.o Skipping ranlib for thin archive build/opt/mongo/db/matcher/libpath.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/deferred_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/deferred_writer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batch_write_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_write_exec.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/propsvec.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/propsvec.c In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/s/commands/flush_router_config_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/remove_shard_from_zone_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/request_types/remove_shard_from_zone_request_type.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_range_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_range_cursor.cpp ar rcsTD build/opt/mongo/s/commands/libshared_cluster_commands.a build/opt/mongo/s/commands/flush_router_config_cmd.o build/opt/mongo/s/commands/get_shard_map_cmd.o Skipping ranlib for thin archive build/opt/mongo/s/commands/libshared_cluster_commands.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/zstandard-1.3.7/zstd/lib -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/message_compressor_manager.cpp src/mongo/transport/message_compressor_manager.cpp: In member function 'void mongo::MessageCompressorManager::clientBegin(mongo::BSONObjBuilder*)': src/mongo/transport/message_compressor_manager.cpp:204:21: warning: loop variable 'e' creates a copy from type 'const std::__cxx11::basic_string' [-Wrange-loop-construct] 204 | for (const auto e : _registry->getCompressorNames()) { | ^ src/mongo/transport/message_compressor_manager.cpp:204:21: note: use reference type to prevent copying 204 | for (const auto e : _registry->getCompressorNames()) { | ^ | & In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/keyfile_option_gen.h --output build/opt/mongo/db/keyfile_option_gen.cpp src/mongo/db/keyfile_option.idl src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/mongod_options_sharding_gen.h --output build/opt/mongo/db/mongod_options_sharding_gen.cpp src/mongo/db/mongod_options_sharding.idl src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/mongod_options_replication_gen.h --output build/opt/mongo/db/mongod_options_replication_gen.cpp src/mongo/db/mongod_options_replication.idl src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/server_options_nongeneral_gen.h --output build/opt/mongo/db/server_options_nongeneral_gen.cpp src/mongo/db/server_options_nongeneral.idl src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/mongod_options_legacy_gen.h --output build/opt/mongo/db/mongod_options_legacy_gen.cpp src/mongo/db/mongod_options_legacy.idl src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/cluster_auth_mode_option_gen.h --output build/opt/mongo/db/cluster_auth_mode_option_gen.cpp src/mongo/db/cluster_auth_mode_option.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/mongod_options_general_gen.h --output build/opt/mongo/db/mongod_options_general_gen.cpp src/mongo/db/mongod_options_general.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/brkiter.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/mongod_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/mongod_options.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_heartbeat_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_response.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp:47: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp:47: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp:47: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp:47: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/idl/server_parameter_with_storage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/idl/server_parameter_with_storage.cpp src/mongo/db/concurrency/deferred_writer.cpp: In member function 'mongo::StatusWith > mongo::DeferredWriter::_getCollection(mongo::OperationContext*)': src/mongo/db/concurrency/deferred_writer.cpp:93:21: warning: redundant move in return statement [-Wredundant-move] 93 | return std::move(agc); | ~~~~~~~~~^~~~~ src/mongo/db/concurrency/deferred_writer.cpp:93:21: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/thread_pool_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/thread_pool_task_executor.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/snapshot_helper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/snapshot_helper.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/write_ops/batch_write_exec.cpp:47: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/signed_logical_time.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/signed_logical_time.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/concurrency/deferred_writer.h:32, from src/mongo/db/concurrency/deferred_writer.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/concurrency/libdeferred_writer.a build/opt/mongo/db/concurrency/deferred_writer.o Skipping ranlib for thin archive build/opt/mongo/db/concurrency/libdeferred_writer.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/hex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/hex.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_algo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_algo.cpp ar rcsTD build/opt/mongo/db/storage/libsnapshot_helper.a build/opt/mongo/db/storage/snapshot_helper.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libsnapshot_helper.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/wire_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/wire_version.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/winnmfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/winnmfmt.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/mongod_options_storage_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/mongod_options_storage_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy.cpp In file included from src/mongo/db/matcher/expression_algo.cpp:35: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:84:25: warning: redundant move in return statement [-Wredundant-move] 84 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:84:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:139:25: warning: redundant move in return statement [-Wredundant-move] 139 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:139:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:176:25: warning: redundant move in return statement [-Wredundant-move] 176 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:176:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/cluster_write.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/write_ops/cluster_write.cpp In file included from src/mongo/db/matcher/expression_algo.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:38: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:58:25: note: remove 'std::move' call src/mongo/db/matcher/expression_algo.cpp: In function 'std::unique_ptr mongo::{anonymous}::createAndOfNodes(std::vector >*)': src/mongo/db/matcher/expression_algo.cpp:258:21: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(splitAnd); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:258:21: note: remove 'std::move' call src/mongo/db/matcher/expression_algo.cpp: In function 'std::unique_ptr mongo::{anonymous}::createNorOfNodes(std::vector >*)': src/mongo/db/matcher/expression_algo.cpp:274:21: warning: redundant move in return statement [-Wredundant-move] 274 | return std::move(splitNor); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:274:21: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decfmtst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decfmtst.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/city.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/abseil-cpp-master/abseil-cpp src/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/city.cc ar rcsTD build/opt/third_party/abseil-cpp-master/libabsl_hash.a build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/city.o build/opt/third_party/abseil-cpp-master/abseil-cpp/absl/hash/internal/hash.o Skipping ranlib for thin archive build/opt/third_party/abseil-cpp-master/libabsl_hash.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/current_date_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/current_date_node.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bson_comparator_interface_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bson_comparator_interface_base.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/diagnostic_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/diagnostic_info.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:38, from src/mongo/db/update/current_date_node.h:33, from src/mongo/db/update/current_date_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/bson/bson_comparator_interface_base.cpp: In static member function 'static void mongo::BSONComparatorInterfaceBase::hashCombineBSONElement(size_t&, mongo::BSONElement, mongo::BSONComparatorInterfaceBase::ComparisonRulesSet, const mongo::StringData::ComparatorInterface*) [with T = mongo::BSONObj]': src/mongo/bson/bson_comparator_interface_base.cpp:63:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 63 | void BSONComparatorInterfaceBase::hashCombineBSONElement( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:63:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_comparator_interface_base.cpp: In static member function 'static void mongo::BSONComparatorInterfaceBase::hashCombineBSONObj(size_t&, const mongo::BSONObj&, mongo::BSONComparatorInterfaceBase::ComparisonRulesSet, const mongo::StringData::ComparatorInterface*) [with T = mongo::BSONObj]': src/mongo/bson/bson_comparator_interface_base.cpp:53:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, iter.next(), rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:57:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 57 | hashCombineBSONElement(seed, elem, rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp: In static member function 'static void mongo::BSONComparatorInterfaceBase::hashCombineBSONElement(size_t&, mongo::BSONElement, mongo::BSONComparatorInterfaceBase::ComparisonRulesSet, const mongo::StringData::ComparatorInterface*) [with T = mongo::BSONElement]': src/mongo/bson/bson_comparator_interface_base.cpp:63:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 63 | void BSONComparatorInterfaceBase::hashCombineBSONElement( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp: In static member function 'static void mongo::BSONComparatorInterfaceBase::hashCombineBSONObj(size_t&, const mongo::BSONObj&, mongo::BSONComparatorInterfaceBase::ComparisonRulesSet, const mongo::StringData::ComparatorInterface*) [with T = mongo::BSONElement]': src/mongo/bson/bson_comparator_interface_base.cpp:53:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, iter.next(), rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:57:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 57 | hashCombineBSONElement(seed, elem, rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/errno_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/errno_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/mongod_options_storage_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libsharding_api.a build/opt/mongo/s/write_ops/cluster_write.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_api.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationweights.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationweights.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/charstr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/charstr.cpp src/mongo/db/update/current_date_node.cpp: In member function 'virtual mongo::Status mongo::CurrentDateNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/current_date_node.cpp:55:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 55 | Status CurrentDateNode::init(BSONElement modExpr, | ^~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_avg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_avg.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/watchdog/watchdog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/watchdog/watchdog.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bmpset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bmpset.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2polyline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polyline.cc In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/expression.h:45, from src/mongo/db/pipeline/accumulator.h:40, from src/mongo/db/pipeline/accumulator_avg.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_bucket.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_bucket.cpp In file included from src/mongo/db/pipeline/accumulator.h:46, from src/mongo/db/pipeline/accumulator_avg.cpp:32: src/mongo/util/summation.h: In member function 'mongo::DoubleDouble mongo::DoubleDoubleSummation::getDoubleDouble() const': src/mongo/util/summation.h:85:42: note: parameter passing for argument of type 'std::pair' when C++17 is enabled changed to match C++14 in GCC 10.1 85 | DoubleDouble getDoubleDouble() const { | ^ In file included from src/mongo/db/pipeline/accumulator.h:40, from src/mongo/db/pipeline/accumulator_avg.cpp:32: src/mongo/db/pipeline/expression.h: In instantiation of 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/accumulator_avg.cpp:46:1: required from here src/mongo/db/pipeline/expression.h:343:30: warning: redundant move in return statement [-Wredundant-move] 343 | return std::move(expr); | ^ src/mongo/db/pipeline/expression.h:343:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fast_clock_source_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/fast_clock_source_factory.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/tuple:41, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:54, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:34, from src/mongo/db/pipeline/accumulator_avg.cpp:32: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/invoke.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = boost::intrusive_ptr (*)(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&); _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/invoke.h:61:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 61 | { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } | ^ In file included from src/mongo/db/pipeline/accumulator.h:40, from src/mongo/db/pipeline/accumulator_avg.cpp:32: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:335:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 335 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:340:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 340 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_service.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_catalog.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_factory_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_factory_mongod.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/single_transaction_coordinator_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/single_transaction_coordinator_stats.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/accumulator.h:46, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_group.h:35, from src/mongo/db/pipeline/document_source_bucket.cpp:32: src/mongo/util/summation.h: In member function 'mongo::DoubleDouble mongo::DoubleDoubleSummation::getDoubleDouble() const': src/mongo/util/summation.h:85:42: note: parameter passing for argument of type 'std::pair' when C++17 is enabled changed to match C++14 in GCC 10.1 85 | DoubleDouble getDoubleDouble() const { | ^ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/s/transaction_coordinator_factory_mongod.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/s/transaction_coordinator_factory_mongod.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/s/transaction_coordinator_factory_mongod.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/s/transaction_coordinator_factory_mongod.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_futures_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_futures_util.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/s/transaction_coordinators_stats_gen.h --output build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp src/mongo/db/s/transaction_coordinators_stats.idl In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/tuple:41, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:54, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:34, from src/mongo/db/pipeline/document_source_bucket.h:32, from src/mongo/db/pipeline/document_source_bucket.cpp:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/invoke.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = std::__cxx11::list > (*)(mongo::BSONElement, const boost::intrusive_ptr&); _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/invoke.h:61:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 61 | { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } | ^ src/mongo/db/pipeline/document_source_bucket.cpp: In function 'boost::intrusive_ptr mongo::{anonymous}::getExpressionConstant(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/document_source_bucket.cpp:48:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 48 | intrusive_ptr getExpressionConstant( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket.cpp:52:41: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 52 | auto expr = Expression::parseOperand(expCtx, expressionElem, vps)->optimize(); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket.cpp: In static member function 'static std::__cxx11::list > mongo::DocumentSourceBucket::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_bucket.cpp:57:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 57 | list> DocumentSourceBucket::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket.cpp:98:82: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 98 | auto exprConst = getExpressionConstant(pExpCtx, boundaryElem, vps); | ^ src/mongo/db/pipeline/document_source_bucket.cpp:137:74: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 137 | auto exprConst = getExpressionConstant(pExpCtx, argument, vps); | ^ src/mongo/db/pipeline/document_source_bucket.cpp:206:92: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 206 | auto groupSource = DocumentSourceGroup::createFromBson(groupObj.firstElement(), pExpCtx); | ^ src/mongo/db/pipeline/document_source_bucket.cpp:207:89: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 207 | auto sortSource = DocumentSourceSort::createFromBson(sortObj.firstElement(), pExpCtx); | ^ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_curop_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_curop_mongod.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/storage/flow_control.h:34, from src/mongo/db/s/transaction_coordinator_service.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/s/transaction_coordinator_factory_mongod.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/wait_for_majority_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/wait_for_majority_service.cpp In file included from src/mongo/db/pipeline/lite_parsed_document_source.h:38, from src/mongo/db/pipeline/mongo_process_interface.h:49, from src/mongo/db/pipeline/mongo_process_common.h:35, from src/mongo/db/pipeline/mongos_process_interface.h:33, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinators_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/db/pipeline/mongos_process_interface.h:34, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/db/pipeline/mongos_process_interface.h:34, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/db/pipeline/mongos_process_interface.h:34, from src/mongo/db/s/transaction_coordinator_curop.h:31, from src/mongo/db/s/transaction_coordinator_curop_mongod.cpp:29: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/server_transaction_coordinators_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/server_transaction_coordinators_metrics.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_metrics_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_metrics_observer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinators_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:32, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:32, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:32, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:32, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_structures.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/transaction_coordinator_structures.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/transaction_coordinator_document_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/matcher/schema/encrypt_schema_gen.h --output build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp src/mongo/db/matcher/schema/encrypt_schema.idl In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/s/transaction_coordinator_worker_curop_repository.h:32, from src/mongo/db/s/transaction_coordinator_worker_curop_info.h:31, from src/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/encrypt_schema_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/s/server_transaction_coordinators_metrics.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.h:32, from src/mongo/db/s/transaction_coordinator_metrics_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/runtime_constants_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/runtime_constants_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.h --output build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp src/mongo/rpc/rewrite_state_change_errors_server_parameter.idl src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_client_direct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/keys_collection_client_direct.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/s/transaction_coordinator_document_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/s/libtransaction_coordinator.a build/opt/mongo/db/s/server_transaction_coordinators_metrics.o build/opt/mongo/db/s/single_transaction_coordinator_stats.o build/opt/mongo/db/s/transaction_coordinator_catalog.o build/opt/mongo/db/s/transaction_coordinator_curop_mongod.o build/opt/mongo/db/s/transaction_coordinator_factory_mongod.o build/opt/mongo/db/s/transaction_coordinator_futures_util.o build/opt/mongo/db/s/transaction_coordinator_metrics_observer.o build/opt/mongo/db/s/transaction_coordinator_service.o build/opt/mongo/db/s/transaction_coordinator_structures.o build/opt/mongo/db/s/transaction_coordinator_util.o build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.o build/opt/mongo/db/s/transaction_coordinator.o build/opt/mongo/db/s/wait_for_majority_service.o build/opt/mongo/db/s/transaction_coordinator_document_gen.o build/opt/mongo/db/s/transaction_coordinators_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/db/s/libtransaction_coordinator.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/rewrite_state_change_errors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/rewrite_state_change_errors.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/pstl/glue_algorithm_defs.h:13, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/algorithm:74, from src/mongo/base/string_data.h:32, from build/opt/mongo/base/error_codes.h:36, from src/mongo/base/status.h:35, from src/mongo/db/keys_collection_client_direct.h:35, from src/mongo/db/keys_collection_client_direct.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::KeysCollectionDocument}; _Tp = mongo::KeysCollectionDocument; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'virtual mongo::StatusWith > mongo::KeysCollectionClientDirect::getNewKeys(mongo::OperationContext*, mongo::StringData, const mongo::LogicalTime&, bool)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/read_preference.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/read_preference.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/matcher/schema/encrypt_schema_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/subplan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/subplan.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/pipeline/runtime_constants_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unifunct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unifunct.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/message_event_utf8_encoder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/message_event_utf8_encoder.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie2_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie2_builder.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/utext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utext.cpp ar rcsTD build/opt/mongo/rpc/librewrite_state_change_errors.a build/opt/mongo/rpc/rewrite_state_change_errors.o build/opt/mongo/rpc/rewrite_state_change_errors_server_parameter_gen.o Skipping ranlib for thin archive build/opt/mongo/rpc/librewrite_state_change_errors.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_fetcher.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/feature_compatibility_version_gen.h --output build/opt/mongo/db/commands/feature_compatibility_version_gen.cpp src/mongo/db/commands/feature_compatibility_version.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/feature_compatibility_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/time_proof_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/time_proof_service.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/fts_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/index/fts_access_method.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libtime_proof_service.a build/opt/mongo/db/time_proof_service.o Skipping ranlib for thin archive build/opt/mongo/db/libtime_proof_service.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/parameters_gen.h --output build/opt/mongo/db/commands/parameters_gen.cpp src/mongo/db/commands/parameters.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/parameters_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/commands/parameters_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_fetcher.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_fetcher.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_fetcher.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_fetcher.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/election_reason_counter_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/election_reason_counter_parser.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_fetcher.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libelection_reason_counter_parser.a build/opt/mongo/db/repl/election_reason_counter_parser.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libelection_reason_counter_parser.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/distinct_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/distinct_scan.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:35, from src/mongo/db/commands/feature_compatibility_version.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/commands/parameters_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_fetcher.a build/opt/mongo/db/repl/oplog_fetcher.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_fetcher.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/simple_bsonelement_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/simple_bsonelement_comparator.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/create_collection_gen.h --output build/opt/mongo/s/request_types/create_collection_gen.cpp src/mongo/s/request_types/create_collection.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_cnv.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_cnv.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/bson_template_evaluator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/scripting/bson_template_evaluator.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/create_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/s/request_types/create_collection_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/bson/simple_bsonelement_comparator.cpp:32: src/mongo/bson/simple_bsonelement_comparator.h: In member function 'virtual void mongo::SimpleBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/simple_bsonelement_comparator.h:51:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 51 | hashCombineBSONElement(seed, toHash, ComparisonRules::kConsiderFieldName, nullptr); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/scripting/deadline_monitor_gen.h --output build/opt/mongo/scripting/deadline_monitor_gen.cpp src/mongo/scripting/deadline_monitor.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/whats_my_uri_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/whats_my_uri_cmd.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/deadline_monitor_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/scripting/deadline_monitor_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/scripting/bson_template_evaluator.cpp: In member function 'mongo::BsonTemplateEvaluator::Status mongo::BsonTemplateEvaluator::_evalElem(mongo::BSONElement, mongo::BSONObjBuilder&)': src/mongo/scripting/bson_template_evaluator.cpp:97:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 97 | BsonTemplateEvaluator::Status BsonTemplateEvaluator::_evalElem(const BSONElement in, | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/scripting/bson_template_evaluator.cpp:106:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 106 | Status st = _evalElem(element, newBuilder); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ src/mongo/scripting/bson_template_evaluator.cpp: In member function 'mongo::BsonTemplateEvaluator::Status mongo::BsonTemplateEvaluator::evaluate(const mongo::BSONObj&, mongo::BSONObjBuilder&)': src/mongo/scripting/bson_template_evaluator.cpp:84:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 84 | Status st = _evalElem(e, builder); | ~~~~~~~~~^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/map:60, from src/mongo/scripting/bson_template_evaluator.h:47, from src/mongo/scripting/bson_template_evaluator.cpp:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h: In function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::tuple<>}; _Key = int; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_tree.h:2426:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2426 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/map:61, from src/mongo/scripting/bson_template_evaluator.h:47, from src/mongo/scripting/bson_template_evaluator.cpp:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_map.h: In static member function 'static mongo::BsonTemplateEvaluator::Status mongo::BsonTemplateEvaluator::evalSeqInt(mongo::BsonTemplateEvaluator*, const char*, const mongo::BSONObj&, mongo::BSONObjBuilder&)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_map.h:501:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 501 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 502 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 503 | std::tuple<>()); | ~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_map.h:501:44: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 501 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 502 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 503 | std::tuple<>()); | ~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/scripting/libbson_template_evaluator.a build/opt/mongo/scripting/bson_template_evaluator.o Skipping ranlib for thin archive build/opt/mongo/scripting/libbson_template_evaluator.a src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/test_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/test_commands.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_index_stage.h:32, from src/mongo/db/exec/distinct_scan.h:33, from src/mongo/db/exec/distinct_scan.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/roll_back_local_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/roll_back_local_operations.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/ftdc/util.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/whats_my_uri_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/scripting/deadline_monitor_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_util.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include src/third_party/shim_asio.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/version_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/client/version_manager.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/connection_pool_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/executor/connection_pool_stats.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/system/detail/error_category.hpp:17, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/system/error_category.hpp:10, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path_traits.hpp:14, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path.hpp:21, from src/mongo/db/ftdc/util.h:32, from src/mongo/db/ftdc/util.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {bool}; _Tp = long long unsigned int; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In function 'mongo::StatusWith mongo::FTDCBSONUtil::{anonymous}::extractMetricsFromDocument(const mongo::BSONObj&, const mongo::BSONObj&, std::vector*, bool, size_t)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/ftdc/util.cpp:270:1: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 270 | } | ^ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/legacy_reply_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/rpc/legacy_reply_builder.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_set.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/speculative_majority_read_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/speculative_majority_read_info.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp:46: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp:46: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp:46: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/commands/test_commands.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/executor/libconnection_pool_stats.a build/opt/mongo/executor/connection_pool_stats.o Skipping ranlib for thin archive build/opt/mongo/executor/libconnection_pool_stats.a In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp:46: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/stsearch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/stsearch.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/s/sharding_runtime_d_params_gen.h --output build/opt/mongo/db/s/sharding_runtime_d_params_gen.cpp src/mongo/db/s/sharding_runtime_d_params.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/string.h:519, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/cstring:42, from src/mongo/base/string_data.h:33, from build/opt/mongo/base/error_codes.h:36, from src/mongo/base/status.h:35, from src/mongo/rpc/legacy_reply_builder.h:34, from src/mongo/rpc/legacy_reply_builder.cpp:32: In function 'void* memcpy(void*, const void*, size_t)', inlined from 'static void mongo::DataType::Handler >::unsafeStore(const T&, char*, size_t*) [with T = int; = void]' at src/mongo/base/data_type.h:98:28, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = int]' at src/mongo/base/data_type.h:158:32, inlined from 'static void mongo::DataType::Handler::value>::type>::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type_endian.h:115:30, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type.h:158:32, inlined from 'mongo::DataView& mongo::DataView::write(const T&, std::ptrdiff_t) [with T = mongo::LittleEndian]' at src/mongo/base/data_view.h:85:30, inlined from 'void mongo::QueryResult::View::setResultFlags(int32_t)' at src/mongo/db/dbmessage.h:180:41, inlined from 'void mongo::QueryResult::View::setResultFlagsToOk()' at src/mongo/db/dbmessage.h:184:23, inlined from 'virtual mongo::Message mongo::rpc::LegacyReplyBuilder::done()' at src/mongo/rpc/legacy_reply_builder.cpp:134:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void* memcpy(void*, const void*, size_t)', inlined from 'static void mongo::DataType::Handler >::unsafeStore(const T&, char*, size_t*) [with T = int; = void]' at src/mongo/base/data_type.h:98:28, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = int]' at src/mongo/base/data_type.h:158:32, inlined from 'static void mongo::DataType::Handler::value>::type>::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type_endian.h:115:30, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type.h:158:32, inlined from 'mongo::DataView& mongo::DataView::write(const T&, std::ptrdiff_t) [with T = mongo::LittleEndian]' at src/mongo/base/data_view.h:85:30, inlined from 'void mongo::QueryResult::View::setResultFlags(int32_t)' at src/mongo/db/dbmessage.h:180:41, inlined from 'virtual mongo::Message mongo::rpc::LegacyReplyBuilder::done()' at src/mongo/rpc/legacy_reply_builder.cpp:132:26: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uts46.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uts46.cpp ar rcsTD build/opt/mongo/db/commands/libshell_protocol.a build/opt/mongo/db/commands/test_commands.o build/opt/mongo/db/commands/whats_my_uri_cmd.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libshell_protocol.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 src/mongo/db/fts/unicode/gen_casefold_map.py src/third_party/unicode-8.0.0/CaseFolding.txt build/opt/mongo/db/fts/unicode/codepoints_casefold.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/codepoints_casefold.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_casefold.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/utrace.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrace.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/cmdline_utils/censor_cmdline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/cmdline_utils/censor_cmdline.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_mechanism_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_mechanism_registry.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_plain_server_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_plain_server_conversation.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/s/transaction_router.h:39, from src/mongo/s/client/version_manager.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/cmdline_utils/libcmdline_utils.a build/opt/mongo/util/cmdline_utils/censor_cmdline.o Skipping ranlib for thin archive build/opt/mongo/util/cmdline_utils/libcmdline_utils.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_scram_server_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/auth/sasl_scram_server_conversation.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_settings.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_plain_server_conversation.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_registry.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/canonical_query_encoder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/canonical_query_encoder.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/logstream_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/logstream_builder.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/find.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/query/find.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/auth/sasl_mechanism_registry.h:38, from src/mongo/db/auth/sasl_mechanism_policies.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/would_change_owning_shard_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/would_change_owning_shard_exception.cpp In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/query/canonical_query_encoder.cpp:39: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:84:25: warning: redundant move in return statement [-Wredundant-move] 84 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:84:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:139:25: warning: redundant move in return statement [-Wredundant-move] 139 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:139:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:176:25: warning: redundant move in return statement [-Wredundant-move] 176 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:176:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/log.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libsaslauth.a build/opt/mongo/db/auth/sasl_mechanism_registry.o build/opt/mongo/db/auth/sasl_plain_server_conversation.o build/opt/mongo/db/auth/sasl_scram_server_conversation.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsaslauth.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/periodic_runner_job_abort_expired_transactions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/canonical_query_encoder.h:32, from src/mongo/db/query/canonical_query_encoder.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/keys_collection_manager_gen.h --output build/opt/mongo/db/keys_collection_manager_gen.cpp src/mongo/db/keys_collection_manager.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_time_validator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_time_validator.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_buffer_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_proxy.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/duplicate_key_error_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/duplicate_key_error_info.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_buffer_proxy.a build/opt/mongo/db/repl/oplog_buffer_proxy.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_buffer_proxy.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/namespace_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/namespace_string.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libduplicate_key_error_info.a build/opt/mongo/db/storage/duplicate_key_error_info.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libduplicate_key_error_info.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/string.h:519, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/cstring:42, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/assert/source_location.hpp:17, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/exception/exception.hpp:9, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/throw_exception.hpp:21, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:36, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/db/clientcursor.h:32, from src/mongo/db/query/find.h:34, from src/mongo/db/query/find.cpp:34: In function 'void* memcpy(void*, const void*, size_t)', inlined from 'static void mongo::DataType::Handler >::unsafeStore(const T&, char*, size_t*) [with T = int; = void]' at src/mongo/base/data_type.h:98:28, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = int]' at src/mongo/base/data_type.h:158:32, inlined from 'static void mongo::DataType::Handler::value>::type>::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type_endian.h:115:30, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type.h:158:32, inlined from 'mongo::DataView& mongo::DataView::write(const T&, std::ptrdiff_t) [with T = mongo::LittleEndian]' at src/mongo/base/data_view.h:85:30, inlined from 'void mongo::QueryResult::View::setResultFlags(int32_t)' at src/mongo/db/dbmessage.h:180:41, inlined from 'void mongo::QueryResult::View::setResultFlagsToOk()' at src/mongo/db/dbmessage.h:184:23, inlined from 'std::string mongo::runQuery(mongo::OperationContext*, mongo::QueryMessage&, const mongo::NamespaceString&, mongo::Message&)' at src/mongo/db/query/find.cpp:762:39: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void* memcpy(void*, const void*, size_t)', inlined from 'static void mongo::DataType::Handler >::unsafeStore(const T&, char*, size_t*) [with T = int; = void]' at src/mongo/base/data_type.h:98:28, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = int]' at src/mongo/base/data_type.h:158:32, inlined from 'static void mongo::DataType::Handler::value>::type>::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type_endian.h:115:30, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type.h:158:32, inlined from 'mongo::DataView& mongo::DataView::write(const T&, std::ptrdiff_t) [with T = mongo::LittleEndian]' at src/mongo/base/data_view.h:85:30, inlined from 'void mongo::QueryResult::View::setResultFlags(int32_t)' at src/mongo/db/dbmessage.h:180:41, inlined from 'void mongo::QueryResult::View::setResultFlagsToOk()' at src/mongo/db/dbmessage.h:184:23, inlined from 'std::string mongo::runQuery(mongo::OperationContext*, mongo::QueryMessage&, const mongo::NamespaceString&, mongo::Message&)' at src/mongo/db/query/find.cpp:640:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void* memcpy(void*, const void*, size_t)', inlined from 'static void mongo::DataType::Handler >::unsafeStore(const T&, char*, size_t*) [with T = long long int; = void]' at src/mongo/base/data_type.h:98:28, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = long long int]' at src/mongo/base/data_type.h:158:32, inlined from 'static void mongo::DataType::Handler::value>::type>::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type_endian.h:115:30, inlined from 'static void mongo::DataType::unsafeStore(const T&, char*, size_t*) [with T = mongo::LittleEndian]' at src/mongo/base/data_type.h:158:32, inlined from 'mongo::DataView& mongo::DataView::write(const T&, std::ptrdiff_t) [with T = mongo::LittleEndian]' at src/mongo/base/data_view.h:85:30, inlined from 'void mongo::QueryResult::View::setCursorId(int64_t)' at src/mongo/db/dbmessage.h:164:24, inlined from 'std::string mongo::runQuery(mongo::OperationContext*, mongo::QueryMessage&, const mongo::NamespaceString&, mongo::Message&)' at src/mongo/db/query/find.cpp:761:32: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:29:33: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' offset [0, 7] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libnamespace_string.a build/opt/mongo/db/namespace_string.o Skipping ranlib for thin archive build/opt/mongo/db/libnamespace_string.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/rewrite_expr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/rewrite_expr.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/async_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/client/async_client.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/platform/decimal128.h:40, from src/mongo/platform/endian.h:39, from src/mongo/base/data_range.h:39, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:44, from src/mongo/bson/mutable/element.h:36, from src/mongo/db/auth/privilege.h:34, from src/mongo/db/commands.h:40, from src/mongo/db/commands.cpp:34: src/mongo/db/commands.cpp: In static member function 'static mongo::NamespaceStringOrUUID mongo::CommandHelpers::parseNsOrUUID(mongo::StringData, const mongo::BSONObj&)': src/mongo/db/commands.cpp:263:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 263 | return {dbname.toString(), uassertStatusOK(UUID::parse(first))}; | ~~~~~~~~~~~^~~~~~~ src/mongo/util/assert_util.h:373:67: note: in definition of macro 'uassertStatusOK' 373 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:36, from src/mongo/db/matcher/rewrite_expr.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:37, from src/mongo/db/matcher/rewrite_expr.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/expression.h:45, from src/mongo/db/matcher/rewrite_expr.h:38, from src/mongo/db/matcher/rewrite_expr.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libperiodic_runner_job_abort_expired_transactions.a build/opt/mongo/db/periodic_runner_job_abort_expired_transactions.o Skipping ranlib for thin archive build/opt/mongo/db/libperiodic_runner_job_abort_expired_transactions.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/constraints.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/constraints.cpp src/mongo/db/matcher/rewrite_expr.cpp: In member function 'std::unique_ptr mongo::RewriteExpr::_rewriteAndExpression(const boost::intrusive_ptr&)': src/mongo/db/matcher/rewrite_expr.cpp:88:25: warning: redundant move in return statement [-Wredundant-move] 88 | return std::move(andMatch); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:88:25: note: remove 'std::move' call src/mongo/db/matcher/rewrite_expr.cpp: In member function 'std::unique_ptr mongo::RewriteExpr::_rewriteOrExpression(const boost::intrusive_ptr&)': src/mongo/db/matcher/rewrite_expr.cpp:109:25: warning: redundant move in return statement [-Wredundant-move] 109 | return std::move(orMatch); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:109:25: note: remove 'std::move' call src/mongo/db/matcher/rewrite_expr.cpp: In member function 'std::unique_ptr mongo::RewriteExpr::_buildComparisonMatchExpression(mongo::ExpressionCompare::CmpOp, mongo::BSONElement)': src/mongo/db/matcher/rewrite_expr.cpp:157:21: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(eqMatchExpr); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:157:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcommands.a build/opt/mongo/db/commands.o Skipping ranlib for thin archive build/opt/mongo/db/libcommands.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/option_description.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/option_description.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/option_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/option_section.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/value.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/value.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/repl_set_command.h:34, from src/mongo/db/repl/repl_set_command.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/rewrite_expr.cpp:149:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 149 | std::unique_ptr RewriteExpr::_buildComparisonMatchExpression( | ^~~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp: In member function 'std::unique_ptr mongo::RewriteExpr::_rewriteComparisonExpression(const boost::intrusive_ptr&)': src/mongo/db/matcher/rewrite_expr.cpp:146:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 146 | return _buildComparisonMatchExpression(cmpOperator, cmpObj.firstElement()); | ^ src/mongo/db/matcher/rewrite_expr.cpp:146:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/startup_option_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/startup_option_init.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/startup_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/startup_options.cpp ar rcsTD build/opt/mongo/client/libasync_client.a build/opt/mongo/client/async_client.o Skipping ranlib for thin archive build/opt/mongo/client/libasync_client.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/environment.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/options_parser/environment.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_knobs_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/query/query_knobs_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/rename_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/rename_collection.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from src/mongo/util/options_parser/option_description.h:32, from src/mongo/util/options_parser/option_section.h:31, from src/mongo/util/options_parser/option_section.cpp:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::optionenvironment::OptionDescription&}; _Tp = mongo::optionenvironment::OptionDescription; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:67, from src/mongo/util/options_parser/option_description.h:32, from src/mongo/util/options_parser/option_section.h:31, from src/mongo/util/options_parser/option_section.cpp:30: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::optionenvironment::OptionSection::getAllOptions(std::vector*) const': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h:1198:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1198 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/sequential_document_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/sequential_document_cache.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/isself.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/isself.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/options_parser/liboptions_parser.a build/opt/mongo/util/options_parser/constraints.o build/opt/mongo/util/options_parser/environment.o build/opt/mongo/util/options_parser/option_description.o build/opt/mongo/util/options_parser/option_section.o build/opt/mongo/util/options_parser/options_parser.o build/opt/mongo/util/options_parser/startup_option_init.o build/opt/mongo/util/options_parser/startup_options.o build/opt/mongo/util/options_parser/value.o Skipping ranlib for thin archive build/opt/mongo/util/options_parser/liboptions_parser.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/simple_string_data_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/simple_string_data_comparator.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregexc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uregexc.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/write_conflict_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/concurrency/write_conflict_exception.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/concurrency/write_conflict_exception_gen.h --output build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp src/mongo/db/concurrency/write_conflict_exception.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/write_conflict_exception_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/query/query_knobs_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection_catalog.h:35, from src/mongo/db/catalog/rename_collection.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/repl/isself.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/platform/decimal128.h:40, from src/mongo/platform/endian.h:39, from src/mongo/base/data_range.h:39, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/catalog/rename_collection.h:31, from src/mongo/db/catalog/rename_collection.cpp:34: src/mongo/db/catalog/rename_collection.cpp: In function 'mongo::Status mongo::renameCollectionForApplyOps(mongo::OperationContext*, const string&, const mongo::BSONElement&, const mongo::BSONObj&, const mongo::repl::OpTime&)': src/mongo/db/catalog/rename_collection.cpp:822:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 822 | uuidToRename = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:373:67: note: in definition of macro 'uassertStatusOK' 373 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/catalog/rename_collection.cpp:834:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 834 | auto uuid = uassertStatusOK(UUID::parse(cmd["dropTarget"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:373:67: note: in definition of macro 'uassertStatusOK' 373 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/cached_plan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/cached_plan.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/catalog/collection.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/working_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/working_set.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.h:21, from build/opt/mongo/db/concurrency/write_conflict_exception_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 src/mongo/db/fts/unicode/gen_diacritic_list.py src/third_party/unicode-8.0.0/PropList.txt build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/concurrency/write_conflict_exception.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/free_mon/free_mon_protocol_gen.h --output build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp src/mongo/db/free_mon/free_mon_protocol.idl In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_status.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/concurrency/libwrite_conflict_exception.a build/opt/mongo/db/concurrency/write_conflict_exception.o build/opt/mongo/db/concurrency/write_conflict_exception_gen.o Skipping ranlib for thin archive build/opt/mongo/db/concurrency/libwrite_conflict_exception.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/pipeline/document_source_change_stream_gen.h --output build/opt/mongo/db/pipeline/document_source_change_stream_gen.cpp src/mongo/db/pipeline/document_source_change_stream.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repair_database_and_check_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repair_database_and_check_version.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/document_source_update_on_add_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/document_source_update_on_add_shard.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/requires_collection_stage.h:32, from src/mongo/db/exec/requires_all_indices_stage.h:32, from src/mongo/db/exec/cached_plan.h:35, from src/mongo/db/exec/cached_plan.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/collection.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcollection.a build/opt/mongo/db/catalog/collection.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_options.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nortrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nortrans.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/locmap.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locmap.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/lock_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/lock_server_status_section.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/free_mon/free_mon_status.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_update_on_add_shard.h:34, from src/mongo/s/query/document_source_update_on_add_shard.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/storage_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/storage_stats.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/expression_text.h:33, from src/mongo/db/matcher/expression_text.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/matcher/expression_text.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/latency_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/latency_server_status_section.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/matcher/expression_text.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/matcher/expression_text.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_text.cpp: In member function 'virtual std::unique_ptr mongo::TextMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_text.cpp:109:21: warning: redundant move in return statement [-Wredundant-move] 109 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text.cpp:109:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/logical_session_cache_stats_gen.h --output build/opt/mongo/db/logical_session_cache_stats_gen.cpp src/mongo/db/logical_session_cache_stats.idl In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/logical_session_cache_gen.h --output build/opt/mongo/db/logical_session_cache_gen.cpp src/mongo/db/logical_session_cache.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_cursor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/s/query/cluster_cursor_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/lock_server_status_section.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/matcher/expression_text.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/parsed_inclusion_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_inclusion_projection.cpp In file included from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/stats/storage_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_boost.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS src/third_party/shim_boost.cpp ar rcsTD build/opt/third_party/libshim_boost.a build/opt/third_party/shim_boost.o Skipping ranlib for thin archive build/opt/third_party/libshim_boost.a In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_query_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_noop.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/expression.h:45, from src/mongo/db/pipeline/parsed_inclusion_projection.h:34, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/stats/latency_server_status_section.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/s/query/cluster_cursor_manager.cpp: In member function 'mongo::StatusWith > mongo::ClusterCursorManager::_detachCursor(mongo::WithLock, const mongo::NamespaceString&, mongo::CursorId)': src/mongo/s/query/cluster_cursor_manager.cpp:832:21: warning: redundant move in return statement [-Wredundant-move] 832 | return std::move(cursor); | ~~~~~~~~~^~~~~~~~ src/mongo/s/query/cluster_cursor_manager.cpp:832:21: note: remove 'std::move' call src/mongo/db/fts/fts_query_noop.cpp: In member function 'virtual std::unique_ptr mongo::fts::FTSQueryNoop::clone() const': src/mongo/db/fts/fts_query_noop.cpp:45:21: warning: redundant move in return statement [-Wredundant-move] 45 | return std::move(clonedQuery); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/fts/fts_query_noop.cpp:45:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/pipeline/parsed_aggregation_projection.h:40, from src/mongo/db/pipeline/parsed_inclusion_projection.h:36, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_collections_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/list_collections_filter.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/pipeline/parsed_aggregation_projection.h:40, from src/mongo/db/pipeline/parsed_inclusion_projection.h:36, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/transformer_interface.h:34, from src/mongo/db/pipeline/parsed_aggregation_projection.h:40, from src/mongo/db/pipeline/parsed_inclusion_projection.h:36, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/random.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/random.cpp ar rcsTD build/opt/mongo/db/stats/libserveronly_stats.a build/opt/mongo/db/stats/latency_server_status_section.o build/opt/mongo/db/stats/lock_server_status_section.o build/opt/mongo/db/stats/storage_stats.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libserveronly_stats.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/pullall_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/update/pullall_node.cpp ar rcsTD build/opt/mongo/db/commands/liblist_collections_filter.a build/opt/mongo/db/commands/list_collections_filter.o Skipping ranlib for thin archive build/opt/mongo/db/commands/liblist_collections_filter.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/boost_assert_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/boost_assert_impl.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/base64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/base64.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:37, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:38, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/init.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:32, from src/mongo/db/update/modifier_node.h:38, from src/mongo/db/update/array_culling_node.h:33, from src/mongo/db/update/pullall_node.h:33, from src/mongo/db/update/pullall_node.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/str.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/str.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/log_component.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/log_component.cpp src/mongo/db/pipeline/parsed_inclusion_projection.cpp: In member function 'void mongo::parsed_aggregation_projection::ParsedInclusionProjection::parseSubObject(const mongo::BSONObj&, const mongo::VariablesParseState&, mongo::parsed_aggregation_projection::InclusionNode*)': src/mongo/db/pipeline/parsed_inclusion_projection.cpp:213:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 213 | Expression::parseOperand(_expCtx, elem, variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/parsed_inclusion_projection.cpp: In member function 'virtual void mongo::parsed_aggregation_projection::ParsedInclusionProjection::parse(const mongo::BSONObj&)': src/mongo/db/pipeline/parsed_inclusion_projection.cpp:135:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 135 | Expression::parseOperand(_expCtx, elem, _expCtx->variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/posix_fadvise.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/posix_fadvise.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/shared_library_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/shared_library_posix.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/stack_locator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/stack_locator.cpp In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from src/mongo/s/query/cluster_cursor_manager.h:34, from src/mongo/s/query/cluster_cursor_manager.cpp:34: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::GenericCursor}; _Tp = mongo::GenericCursor; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonobj.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsonobj.cpp src/mongo/db/update/pullall_node.cpp: In member function 'virtual mongo::Status mongo::PullAllNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/pullall_node.cpp:76:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 76 | Status PullAllNode::init(BSONElement modExpr, | ^~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_type.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/log_severity.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/log_severity.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'std::vector mongo::ClusterCursorManager::getIdleCursors(const mongo::OperationContext*, mongo::MongoProcessInterface::CurrentOpUserMode) const': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:121:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bson_depth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bson_depth.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/transaction_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/transaction_error.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/system_clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/system_clock_source.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/signal_handlers_synchronous.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/signal_handlers_synchronous.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bson_validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bson_validate.cpp In file included from src/mongo/db/jsobj.h:44, from src/mongo/bson/bsonobj.cpp:32: src/mongo/bson/bsonelement.h: In member function 'mongo::BSONObj mongo::BSONObj::replaceFieldNames(const mongo::BSONObj&) const': src/mongo/bson/bsonelement.h:718:36: warning: offset '5' outside bounds of constant string [-Warray-bounds] 718 | fieldNameSize_ = strlen(d + 1 /*skip type*/) + 1 /*include NUL byte*/; | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/bson/bsonmisc.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/bson/bsonobj.cpp:32: src/mongo/bson/bsonobj.h:127:27: note: 'kEmptyObjectPrototype' declared here 127 | static const char kEmptyObjectPrototype[] = {/*size*/ kMinBSONLength, 0, 0, 0, /*eoo*/ 0}; | ^~~~~~~~~~~~~~~~~~~~~ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/error_extra_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/error_extra_info.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/string_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/string_data.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/assert_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/assert_util.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonmisc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsonmisc.cpp src/mongo/bson/bson_validate.cpp: In function 'mongo::Status mongo::{anonymous}::makeError(mongo::StringData, mongo::BSONElement, mongo::StringData)': src/mongo/bson/bson_validate.cpp:51:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 51 | Status NOINLINE_DECL makeError(StringData baseMsg, BSONElement idElem, StringData elemName) { | ^~~~~~~~~ src/mongo/bson/bson_validate.cpp: In function 'mongo::Status mongo::{anonymous}::Buffer::readUTF8String(mongo::StringData, mongo::StringData*)': src/mongo/bson/bson_validate.cpp:113:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 113 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:113:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:117:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 117 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:117:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:125:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 125 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:125:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:129:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 129 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:129:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:132:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 132 | return makeError("not null terminated string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:132:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp: In function 'mongo::Status mongo::validateBSON(const char*, uint64_t, mongo::BSONVersion)': src/mongo/bson/bson_validate.cpp:332:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 332 | return makeError("bson size is larger than buffer size", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:332:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:210:62: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 210 | return makeError("invalid bson", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:210:62: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:93:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 93 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:93:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:230:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 230 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:230:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:235:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 235 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:235:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:241:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 241 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:241:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:243:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 243 | return makeError("invalid boolean value", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:243:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:251:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 251 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:251:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:256:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 256 | return makeError("Invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:256:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:264:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 264 | return makeError("invalid bson length", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:264:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:93:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 93 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:93:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:93:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 93 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:93:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:289:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 289 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:289:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:291:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 291 | return makeError("invalid size in bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:291:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:293:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 293 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:293:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:305:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 305 | return makeError("invalid bson type", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:305:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:367:88: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 367 | "bson length doesn't match what we found", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:367:88: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:387:90: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 387 | return makeError("invalid bson CodeWScope size", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:387:90: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:399:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 399 | StringData()); | ^ src/mongo/bson/bson_validate.cpp:399:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:403:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 403 | return makeError("unnested CodeWScope", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:403:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/system_tick_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/system_tick_source.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/shared_library.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/shared_library.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/exit.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/mutex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/mutex.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/startup_test.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/startup_test.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/json.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/json.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/log_component_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/log_component_settings.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/stacktrace_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/stacktrace_posix.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/platform_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/platform_init.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/redaction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/redaction.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/timer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_type_string_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_type_string_data.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/initializer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/validate_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/validate_locale.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/simple_bsonobj_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/simple_bsonobj_comparator.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/idle_thread_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/concurrency/idle_thread_block.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/status.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/error_codes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/base/error_codes.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/shim.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/shim.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/strcasestr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/strcasestr.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/strnlen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/strnlen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/process_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/process_id.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/uuid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/uuid.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/rotatable_file_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/rotatable_file_writer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/stacktrace.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/stacktrace.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/ramlog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/ramlog.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/thread_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/concurrency/thread_name.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/initializer_dependency_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/initializer_dependency_graph.cpp src/mongo/util/uuid.cpp: In static member function 'static mongo::StatusWith mongo::UUID::parse(mongo::BSONElement)': src/mongo/util/uuid.cpp:54:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 54 | StatusWith UUID::parse(BSONElement from) { | ^~~~ src/mongo/util/uuid.cpp: In static member function 'static mongo::UUID mongo::UUID::parse(const mongo::BSONObj&)': src/mongo/util/uuid.cpp:86:42: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 86 | auto res = parse(obj.getField("uuid")); | ^ /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/global_initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/global_initializer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/allocator.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_type_terminated.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_type_terminated.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsontypes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsontypes.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/duration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/duration.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/timestamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/timestamp.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/stack_locator_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/stack_locator_linux.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/log_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/log_manager.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_range.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/data_range.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/message_log_domain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/message_log_domain.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/file.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/oid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/oid.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/logger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/logger.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/parse_number.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/parse_number.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/shell_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/shell_exec.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/platform/decimal128.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/make_string_vector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/make_string_vector.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/text.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/exception_filter_win32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/exception_filter_win32.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/version.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/global_initializer_registerer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/base/global_initializer_registerer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/itoa.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/itoa.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/component_message_log_domain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/component_message_log_domain.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonelement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsonelement.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/console.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/logger/console.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonobjbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/bson/bsonobjbuilder.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unisetspan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unisetspan.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/private/socket_poll.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/private/socket_poll.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/sock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/net/sock.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2021.06/dow.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/timelib-2021.06 src/third_party/timelib-2021.06/dow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/update_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/update_stage.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/boost_assert_shim.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/boost_assert_shim.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_time_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/logical_time_metadata_hook.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/ttl_gen.h --output build/opt/mongo/db/ttl_gen.cpp src/mongo/db/ttl.idl ar rcsTD build/opt/mongo/libbase.a build/opt/mongo/base/data_range.o build/opt/mongo/base/data_range_cursor.o build/opt/mongo/base/data_type.o build/opt/mongo/base/data_type_string_data.o build/opt/mongo/base/data_type_terminated.o build/opt/mongo/base/error_codes.o build/opt/mongo/base/error_extra_info.o build/opt/mongo/base/global_initializer.o build/opt/mongo/base/global_initializer_registerer.o build/opt/mongo/base/init.o build/opt/mongo/base/initializer.o build/opt/mongo/base/initializer_dependency_graph.o build/opt/mongo/base/make_string_vector.o build/opt/mongo/base/parse_number.o build/opt/mongo/base/shim.o build/opt/mongo/base/simple_string_data_comparator.o build/opt/mongo/base/status.o build/opt/mongo/base/string_data.o build/opt/mongo/base/transaction_error.o build/opt/mongo/base/validate_locale.o build/opt/mongo/bson/bson_comparator_interface_base.o build/opt/mongo/bson/bson_depth.o build/opt/mongo/bson/bson_validate.o build/opt/mongo/bson/bsonelement.o build/opt/mongo/bson/bsonmisc.o build/opt/mongo/bson/bsonobj.o build/opt/mongo/bson/bsonobjbuilder.o build/opt/mongo/bson/bsontypes.o build/opt/mongo/bson/json.o build/opt/mongo/bson/oid.o build/opt/mongo/bson/simple_bsonelement_comparator.o build/opt/mongo/bson/simple_bsonobj_comparator.o build/opt/mongo/bson/timestamp.o build/opt/mongo/logger/component_message_log_domain.o build/opt/mongo/logger/console.o build/opt/mongo/logger/log_component.o build/opt/mongo/logger/log_component_settings.o build/opt/mongo/logger/log_manager.o build/opt/mongo/logger/log_severity.o build/opt/mongo/logger/logger.o build/opt/mongo/logger/logstream_builder.o build/opt/mongo/logger/message_event_utf8_encoder.o build/opt/mongo/logger/message_log_domain.o build/opt/mongo/logger/ramlog.o build/opt/mongo/logger/redaction.o build/opt/mongo/logger/rotatable_file_manager.o build/opt/mongo/logger/rotatable_file_writer.o build/opt/mongo/platform/decimal128.o build/opt/mongo/platform/mutex.o build/opt/mongo/platform/posix_fadvise.o build/opt/mongo/platform/process_id.o build/opt/mongo/platform/random.o build/opt/mongo/platform/shared_library.o build/opt/mongo/platform/shared_library_posix.o build/opt/mongo/platform/stack_locator.o build/opt/mongo/platform/stack_locator_linux.o build/opt/mongo/platform/strcasestr.o build/opt/mongo/platform/strnlen.o build/opt/mongo/util/allocator.o build/opt/mongo/util/assert_util.o build/opt/mongo/util/base64.o build/opt/mongo/util/boost_assert_impl.o build/opt/mongo/util/concurrency/idle_thread_block.o build/opt/mongo/util/concurrency/thread_name.o build/opt/mongo/util/duration.o build/opt/mongo/util/errno_util.o build/opt/mongo/util/exception_filter_win32.o build/opt/mongo/util/exit.o build/opt/mongo/util/file.o build/opt/mongo/util/hex.o build/opt/mongo/util/itoa.o build/opt/mongo/util/log.o build/opt/mongo/util/platform_init.o build/opt/mongo/util/shell_exec.o build/opt/mongo/util/signal_handlers_synchronous.o build/opt/mongo/util/stacktrace.o build/opt/mongo/util/stacktrace_posix.o build/opt/mongo/util/startup_test.o build/opt/mongo/util/str.o build/opt/mongo/util/system_clock_source.o build/opt/mongo/util/system_tick_source.o build/opt/mongo/util/text.o build/opt/mongo/util/time_support.o build/opt/mongo/util/timer.o build/opt/mongo/util/uuid.o build/opt/mongo/util/version.o Skipping ranlib for thin archive build/opt/mongo/libbase.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ttl_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/ttl_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/cloner_gen.h --output build/opt/mongo/db/cloner_gen.cpp src/mongo/db/cloner.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/cloner.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cloner_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/cloner_gen.cpp ar rcsTD build/opt/mongo/util/net/libsocket.a build/opt/mongo/util/net/private/socket_poll.o build/opt/mongo/util/net/sock.o Skipping ranlib for thin archive build/opt/mongo/util/net/libsocket.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transaction_participant_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/transaction_participant_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/cloner.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/cloner.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/cloner.cpp:42: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/cloner.cpp:42: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/ttl_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/cloner.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session_txn_record_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/session_txn_record_gen.cpp In file included from src/mongo/db/matcher/expression_leaf.h:32, from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/exec/update_stage.h:33, from src/mongo/db/exec/update_stage.cpp:34: src/mongo/bson/bsonelement_comparator.h: In member function 'virtual void mongo::BSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/bsonelement_comparator.h:68:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 68 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cloner_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transaction_metrics_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/transaction_metrics_observer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transaction_participant.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/transaction_participant.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcloner.a build/opt/mongo/db/cloner.o build/opt/mongo/db/cloner_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libcloner.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transaction_history_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/transaction_history_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from build/opt/mongo/db/transaction_participant_gen.h:21, from build/opt/mongo/db/transaction_participant_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transactions_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/transactions_stats_gen.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session_catalog_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/session_catalog_mongod.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/transaction_metrics_observer.h:32, from src/mongo/db/transaction_metrics_observer.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_transactions_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/server_transactions_metrics.cpp In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/ops/update_request.h:32, from src/mongo/db/transaction_participant.h:41, from src/mongo/db/transaction_participant.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/transaction_history_iterator.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/retryable_writes_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/retryable_writes_stats.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/single_transaction_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/stats/single_transaction_stats.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/session_catalog_mongod.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:72, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/utility/compare_pointees.hpp:15, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:61, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/db/transaction_participant.h:32, from src/mongo/db/transaction_participant.cpp:37: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::repl::OpTime&}; _Tp = mongo::repl::OpTime; _Alloc = std::allocator]': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/vector:67, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/functional:62, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/utility/compare_pointees.hpp:15, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:61, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/db/transaction_participant.h:32, from src/mongo/db/transaction_participant.cpp:37: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h: In member function 'mongo::Timestamp mongo::TransactionParticipant::Participant::prepareTransaction(mongo::OperationContext*, boost::optional)': /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/stl_vector.h:1198:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1198 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/server_transactions_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/alarm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/alarm.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/server_status.h:32, from src/mongo/db/retryable_writes_stats.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/alarm_runner_background_thread.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/util/alarm_runner_background_thread.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/stats/single_transaction_stats.h:32, from src/mongo/db/stats/single_transaction_stats.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/merge_sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/exec/merge_sort.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/session_catalog_migration_destination.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/session_catalog_migration_destination.cpp ar rcsTD build/opt/mongo/db/libtransaction.a build/opt/mongo/db/retryable_writes_stats.o build/opt/mongo/db/server_transactions_metrics.o build/opt/mongo/db/session_catalog_mongod.o build/opt/mongo/db/transaction_history_iterator.o build/opt/mongo/db/transaction_metrics_observer.o build/opt/mongo/db/transaction_participant.o build/opt/mongo/db/session_txn_record_gen.o build/opt/mongo/db/transaction_participant_gen.o build/opt/mongo/db/transactions_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libtransaction.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtrule.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_init.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/cursor_server_params_gen.h --output build/opt/mongo/db/cursor_server_params_gen.cpp src/mongo/db/cursor_server_params.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cursor_server_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc build/opt/mongo/db/cursor_server_params_gen.cpp ar rcsTD build/opt/mongo/util/libalarm.a build/opt/mongo/util/alarm.o build/opt/mongo/util/alarm_runner_background_thread.o Skipping ranlib for thin archive build/opt/mongo/util/libalarm.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cursor_server_params.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/cursor_server_params.cpp In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/sessions_collection_rs.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.cpp:39: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.cpp:39: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/transport_layer_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/transport/transport_layer_manager.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.cpp src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:144:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; RemoteCallback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:150:20: required from here src/mongo/db/sessions_collection_rs.cpp:128:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 128 | return std::move(val); | ^ src/mongo/db/sessions_collection_rs.cpp:128:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:144:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; RemoteCallback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:212:20: required from here src/mongo/db/sessions_collection_rs.cpp:128:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:128:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:144:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:233:20: required from here src/mongo/db/sessions_collection_rs.cpp:128:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:128:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::StatusWith > >]': src/mongo/db/sessions_collection_rs.cpp:144:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::StatusWith > >]' src/mongo/db/sessions_collection_rs.cpp:254:20: required from here src/mongo/db/sessions_collection_rs.cpp:128:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from build/opt/mongo/db/cursor_server_params_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcursor_server_params.a build/opt/mongo/db/cursor_server_params.o build/opt/mongo/db/cursor_server_params_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libcursor_server_params.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_consistency_markers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/repl/replication_consistency_markers.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/umutex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/umutex.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/move_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/move_chunk_command.cpp ar rcsTD build/opt/mongo/transport/libtransport_layer_manager.a build/opt/mongo/transport/transport_layer_manager.o Skipping ranlib for thin archive build/opt/mongo/transport/libtransport_layer_manager.a /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/pipeline/document_source_merge_gen.h --output build/opt/mongo/db/pipeline/document_source_merge_gen.cpp src/mongo/db/pipeline/document_source_merge.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/pipeline/document_source_merge_modes_gen.h --output build/opt/mongo/db/pipeline/document_source_merge_modes_gen.cpp src/mongo/db/pipeline/document_source_merge_modes.idl /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_repair_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/storage_repair_observer.cpp /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_merge_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_merge_spec.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:36, from src/mongo/db/clientcursor.h:39, from src/mongo/db/curop.h:34, from src/mongo/db/concurrency/write_conflict_exception.h:35, from src/mongo/db/s/session_catalog_migration_destination.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/feature_compatibility_version_command_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version_command_parser.cpp In file included from src/mongo/db/pipeline/document_source_merge_spec.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call src/mongo/db/storage/storage_repair_observer.cpp: In member function 'void mongo::StorageRepairObserver::_touchRepairIncompleteFile()': src/mongo/db/storage/storage_repair_observer.cpp:123:24: error: 'ofstream' is not a member of 'boost::filesystem'; did you mean 'std::ofstream'? 123 | boost::filesystem::ofstream fileStream(_repairIncompleteFilePath); | ^~~~~~~~ In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/bits/localefwd.h:41, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/string:43, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/system/detail/error_category.hpp:16, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/system/error_category.hpp:10, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path_traits.hpp:14, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path.hpp:21, from /home/giuliobenetti/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem.hpp:16, from src/mongo/db/storage/storage_repair_observer.h:34, from src/mongo/db/storage/storage_repair_observer.cpp:32: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/11.2.0/iosfwd:165:41: note: 'std::ofstream' declared here 165 | typedef basic_ofstream ofstream; | ^~~~~~~~ src/mongo/db/storage/storage_repair_observer.cpp:124:5: error: 'fileStream' was not declared in this scope 124 | fileStream << "This file indicates that a repair operation is in progress or incomplete."; | ^~~~~~~~~~ In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge_spec.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge_spec.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:42, from src/mongo/db/catalog_raii.h:33, from src/mongo/db/db_raii.h:34, from src/mongo/db/pipeline/document_source_writer.h:36, from src/mongo/db/pipeline/document_source_merge.h:33, from src/mongo/db/pipeline/document_source_merge_spec.cpp:38: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call /home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/feature_compatibility_version_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version_parser.cpp scons: *** [build/opt/mongo/db/storage/storage_repair_observer.o] Error 1 In file included from src/mongo/db/matcher/expression_text_base.h:32, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:32, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:199:25: warning: redundant move in return statement [-Wredundant-move] 199 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:199:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:221:25: warning: redundant move in return statement [-Wredundant-move] 221 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:221:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:243:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:265:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:287:25: warning: redundant move in return statement [-Wredundant-move] 287 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:287:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:306:25: warning: redundant move in return statement [-Wredundant-move] 306 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:306:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:350:25: warning: redundant move in return statement [-Wredundant-move] 350 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:350:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:393:25: warning: redundant move in return statement [-Wredundant-move] 393 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:393:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:579:25: warning: redundant move in return statement [-Wredundant-move] 579 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:579:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:600:25: warning: redundant move in return statement [-Wredundant-move] 600 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:600:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:621:25: warning: redundant move in return statement [-Wredundant-move] 621 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:621:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:642:25: warning: redundant move in return statement [-Wredundant-move] 642 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:642:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:125:25: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:125:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:154:25: warning: redundant move in return statement [-Wredundant-move] 154 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:154:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:183:25: warning: redundant move in return statement [-Wredundant-move] 183 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:183:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:201:25: warning: redundant move in return statement [-Wredundant-move] 201 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:201:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/matcher/expression_type.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaBinDataSubTypeExpression::shallowClone() const': src/mongo/db/matcher/expression_type.h:196:25: warning: redundant move in return statement [-Wredundant-move] 196 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_type.h:196:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:90:25: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.h:90:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:33, from src/mongo/db/query/canonical_query.h:39, from src/mongo/db/query/explain.h:34, from src/mongo/db/commands.h:46, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:69:38: required from here src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_merge_spec.cpp:37: src/mongo/db/pipeline/aggregation_request.h: In static member function 'static mongo::StatusWith > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.h:76:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 76 | static StatusWith> parsePipelineFromBSON(BSONElement pipelineElem) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/platform/decimal128.h:40, from src/mongo/platform/endian.h:39, from src/mongo/base/data_type_endian.h:37, from src/mongo/bson/util/builder.h:42, from src/mongo/db/namespace_string.h:39, from src/mongo/db/pipeline/document_source_merge_spec.h:37, from src/mongo/db/pipeline/document_source_merge_spec.cpp:32: src/mongo/db/pipeline/document_source_merge_spec.cpp: In function 'mongo::MergeWhenMatchedPolicy mongo::mergeWhenMatchedParseFromBSON(const mongo::BSONElement&)': src/mongo/db/pipeline/document_source_merge_spec.cpp:114:74: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 114 | uassertStatusOK(AggregationRequest::parsePipelineFromBSON(elem))}; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ src/mongo/util/assert_util.h:373:67: note: in definition of macro 'uassertStatusOK' 373 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ scons: building terminated because of errors. build/opt/mongo/db/storage/storage_repair_observer.o failed: Error 1 make: *** [package/pkg-generic.mk:293: /home/giuliobenetti/autobuild/run/instance-0/output-1/build/mongodb-4.2.18/.stamp_built] Error 2 make: Leaving directory '/home/giuliobenetti/autobuild/run/instance-0/buildroot'